Search Results

Search: Posts Made By: quick n dirty
Forum: Programming 02-03-2009
37,270
Posted By quick n dirty
A bad way to check this is to use expr :) If...
A bad way to check this is to use expr :)
If VAL is the value you want to check ...
[ "X`expr $VAL + 0 2>/dev/null`" != "X" ] || echo "$VAL is not numeric"
Showing results 1 to 1 of 1

 
All times are GMT -4. The time now is 09:12 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy