home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / unix / shell / 3091 < prev    next >
Encoding:
Internet Message Format  |  1992-07-22  |  895 b 

  1. Path: sparky!uunet!mcsun!fuug!demos!kiae!glas!demos!delab.sintef.no!Harald.Eikrem
  2. From: Harald.Eikrem@delab.sintef.no
  3. Newsgroups: comp.unix.shell
  4. Date: 17 Jul 92 19:50 MDT
  5. Subject: Re: Is it all digits?
  6. Sender: Notesfile to Usenet Gateway <notes@glas.apc.org>
  7. Message-ID: <1992Jul17.195016*Harald.Eikrem@d>
  8. References: <81-m0xl@lynx.unm.edu>
  9. Nf-ID: #R:81-m0xl@lynx.unm.edu:1101914314:1992Jul17.195016*Harald.Eikrem@d:833282682:001:384
  10. Nf-From: delab.sintef.no!Harald.Eikrem    Jul 17 19:50:00 1992
  11. Lines: 16
  12.  
  13.  
  14. boyd@prl.dec.com (Boyd Roberts) on this everlasting c-shell debate:
  15. ! > 
  16. ! >   set ans = $<
  17. ! >   if ( "$ans" =~ [0-9]* ) echo The answer contains digits
  18. ! >
  19. ! Right it _contains_ digits, but the poster wanted:
  20. !     [...] if the input string is -ALL- digits :
  21.  
  22. I think I answered to that later on, the stuff about negating the contents
  23. of brackets [], remember?
  24.  
  25.   ~~harald E.
  26.  
  27.