From owner-freebsd-questions@FreeBSD.ORG Thu Jun 24 21:17:17 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4D1B11065695 for ; Thu, 24 Jun 2010 21:17:17 +0000 (UTC) (envelope-from aiza21@comclark.com) Received: from avmxsmtp3.comclark.com (avmxsmtp3.comclark.com [202.69.191.117]) by mx1.freebsd.org (Postfix) with ESMTP id CBBC78FC12 for ; Thu, 24 Jun 2010 21:17:16 +0000 (UTC) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApUXAGdoI0zKRa1mPGdsb2JhbAAHgxaEUosdjDkBAQEBNbFTkSSBKYMIcASDXA X-IronPort-AV: E=Sophos;i="4.53,476,1272816000"; d="scan'208";a="5008640" Received: from unknown (HELO [10.0.10.3]) ([202.69.173.102]) by avmxsmtp2.comclark.com with ESMTP; 25 Jun 2010 05:17:15 +0800 Message-ID: <4C23CB5D.1030902@comclark.com> Date: Fri, 25 Jun 2010 05:17:17 +0800 From: Aiza User-Agent: Thunderbird 2.0.0.17 (Windows/20080914) MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <4C22B3D7.6070102@comclark.com> <20100624033257.2D074BEA6@kev.msw.wpafb.af.mil> <20100624050832.06ef2a46@scorpio> <20100624161439.GD557@libertas.local.camdensoftware.com> <20100624123815.01307f51@scorpio> In-Reply-To: <20100624123815.01307f51@scorpio> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: .sh check for numeric content X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Jun 2010 21:17:17 -0000 Jerry wrote: > On Thu, 24 Jun 2010 09:14:39 -0700 > Chip Camden 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.