Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 Jun 2010 12:38:15 -0400
From:      Jerry <freebsd.user@seibercom.net>
To:        freebsd-questions@freebsd.org
Subject:   Re: .sh check for numeric content
Message-ID:  <20100624123815.01307f51@scorpio>
In-Reply-To: <20100624161439.GD557@libertas.local.camdensoftware.com>
References:  <4C22B3D7.6070102@comclark.com> <20100624033257.2D074BEA6@kev.msw.wpafb.af.mil> <20100624050832.06ef2a46@scorpio> <20100624161439.GD557@libertas.local.camdensoftware.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 24 Jun 2010 09:14:39 -0700
Chip Camden <sterling@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@seibercom.net

Disclaimer: off-list followups get on-list replies or get ignored.
Please do not ignore the Reply-To header.
__________________________________________________________________



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100624123815.01307f51>