home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / unix / question / 15866 < prev    next >
Encoding:
Text File  |  1993-01-23  |  1.2 KB  |  32 lines

  1. Newsgroups: comp.unix.questions
  2. Path: sparky!uunet!usc!sol.ctr.columbia.edu!eff!news.oc.com!convex!tchrist
  3. From: Tom Christiansen <tchrist@convex.COM>
  4. Subject: Re: How to recognize a csh var as a number?
  5. Originator: tchrist@pixel.convex.com
  6. Sender: usenet@news.eng.convex.com (news access account)
  7. Message-ID: <1993Jan22.235625.18305@news.eng.convex.com>
  8. Date: Fri, 22 Jan 1993 23:56:25 GMT
  9. Reply-To: tchrist@convex.COM (Tom Christiansen)
  10. References: <1jn3t3INN88b@haydn.crhc.uiuc.edu>
  11. Nntp-Posting-Host: pixel.convex.com
  12. Organization: Convex Computer Corporation, Colorado Springs, CO
  13. X-Disclaimer: This message was written by a user at CONVEX Computer
  14.               Corp. The opinions expressed are those of the user and
  15.               not necessarily those of CONVEX.
  16. Lines: 14
  17.  
  18. From the keyboard of ttsai@crhc.uiuc.edu (Timothy Tsai):
  19. :I am reading string values into a csh variable.  Depending on whether each
  20. :string represents a number or not, I want to do certain things.  How do I test
  21. :to see if the variable string is a number or not?
  22.  
  23. Step 0: choose a real programming language.
  24. Step 1: that done, now ask again.
  25.  
  26. --tom
  27. -- 
  28.     Tom Christiansen      tchrist@convex.com      convex!tchrist
  29.  
  30.  
  31. Emacs is a fine operating system, but I still prefer UNIX. -me
  32.