Snippets has posted 5883 posts at DZone. View Full User Profile
Shellscript checking if a variable is a number
if [ $VARIABLE -eq $VARIABLE 2> /dev/null ]; then
echo $VARIABLE is a number
echo $VARIABLE is not a number
Discover best practices and the most useful tools for building the ideal integration architecture.
DZone's 170th Refcard is an essential reference to Camel, an open-source, lightweight, integration library. This Refcard is authored by...