.sh check for numeric content
Jerry
freebsd.user at seibercom.net
Thu Jun 24 16:38:20 UTC 2010
On Thu, 24 Jun 2010 09:14:39 -0700
Chip Camden <sterling at camdensoftware.com> articulated:
[snip]
> That [[:digit:]] pattern only works if your shell supports POSIX
> character classes in the case statement.
I use Bash myself. I am not sure what other shells support this
context. In any case, I simply supplied a possible solution. I leave it
up to the OP to determine if it is suitable for his/her environment.
--
Jerry ✌
FreeBSD.user at seibercom.net
Disclaimer: off-list followups get on-list replies or get ignored.
Please do not ignore the Reply-To header.
__________________________________________________________________
More information about the freebsd-questions
mailing list