home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!mcsun!fuug!demos!kiae!glas!demos!delab.sintef.no!Harald.Eikrem
- From: Harald.Eikrem@delab.sintef.no
- Newsgroups: comp.unix.shell
- Date: 17 Jul 92 19:50 MDT
- Subject: Re: Is it all digits?
- Sender: Notesfile to Usenet Gateway <notes@glas.apc.org>
- Message-ID: <1992Jul17.195016*Harald.Eikrem@d>
- References: <81-m0xl@lynx.unm.edu>
- Nf-ID: #R:81-m0xl@lynx.unm.edu:1101914314:1992Jul17.195016*Harald.Eikrem@d:833282682:001:384
- Nf-From: delab.sintef.no!Harald.Eikrem Jul 17 19:50:00 1992
- Lines: 16
-
-
- boyd@prl.dec.com (Boyd Roberts) on this everlasting c-shell debate:
- ! >
- ! > set ans = $<
- ! > if ( "$ans" =~ [0-9]* ) echo The answer contains digits
- ! >
- !
- ! Right it _contains_ digits, but the poster wanted:
- !
- ! [...] if the input string is -ALL- digits :
-
- I think I answered to that later on, the stuff about negating the contents
- of brackets [], remember?
-
- ~~harald E.
-
-