.sh check for numeric content

Thomas fwd at gothschlampen.com
Thu Jun 24 02:00:02 UTC 2010


On Thu, Jun 24, 2010 at 09:24:39AM +0800, Aiza wrote:

Hello,

> Receiving a variable from the command line that is suppose
> to contain numeric values.
> 
> How do I code a test to verify the content is  numeric?

http://www.google.com/search?q=shell+test+if+variable+numeric

First link =>
http://www.unix.com/shell-programming-scripting/46276-check-variable-if-its-non-numeric.html

Gosh, Google is full of answers these days..


Regards,
Thomas


More information about the freebsd-questions mailing list