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

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 25 Jun 2010 05:17:17 +0800
Aiza <aiza21@comclark.com> articulated:

> Jerry wrote:
> > 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.
> > 
> The subject clearly tells you what shell the o/p is using.

Actually, ".sh" does not appear to be a definitive declaration of the
scripting language.  However, if you deemed that to be a definitive
declaration for the scripting language the OP was using, then fine.

In any case, as I previously posted, it was left up to the OP to decide
if the proposed solution was suitable for their needs. After reading
all of the babble concerning what should be a relatively easy operation,
perhaps the OP might want to consider switching to Bash.

-- 
Jerry ✌
FreeBSD.user@seibercom.net

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

Q: What's the difference between an Irish wedding and an Irish wake?
A: One more drunk.



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