.sh check for numeric content
aiza21 at comclark.com
Thu Jun 24 21:17:17 UTC 2010
> On Thu, 24 Jun 2010 09:14:39 -0700
> Chip Camden <sterling at camdensoftware.com> articulated:
>> 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.
The subject clearly tells you what shell the o/p is using.
More information about the freebsd-questions