Date: Thu, 24 Jun 2010 11:58:05 +0100 From: RW <rwmaillists@googlemail.com> To: freebsd-questions@freebsd.org Subject: Re: .sh check for numeric content Message-ID: <20100624115805.7b8b0c44@gumby.homeunix.com> In-Reply-To: <20100624031953.GA21766@gothschlampen.com> References: <4C22B3D7.6070102@comclark.com> <20100624013755.GA5009@gothschlampen.com> <20100624034434.7a6c2895@gumby.homeunix.com> <20100624031953.GA21766@gothschlampen.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 24 Jun 2010 05:19:53 +0200 Thomas Keusch <fwd@bsd-solutions-duesseldorf.de> wrote: > tk@eternity:~$ b=5 > tk@eternity:~$ case "$b" in > > [0-9] ) > > echo numeric > > ;; > > * ) > > echo alpha > > ;; > > esac > numeric > tk@eternity:~$ > > Works for me. Now try it with 10.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100624115805.7b8b0c44>