🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.unix.shell
Article #109

Re: Is it all digits?

#109
From: Harald.Eikrem
Date: Sat, 18 Jul 1992 01:50
15 lines
921 bytes
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.
Technical Details
Message-ID: <1992Jul17.195016*Harald.Eikrem@d>
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!fuug!demos!kiae!glas!demos!delab.sintef.no!Harald.Eikrem
References: <81-m0xl@lynx.unm.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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