home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / unix / shell / 3513 < prev    next >
Encoding:
Text File  |  1992-08-18  |  1.5 KB  |  44 lines

  1. Newsgroups: comp.unix.shell
  2. Path: sparky!uunet!cs.utexas.edu!convex!convex!tchrist
  3. From: Tom Christiansen <tchrist@convex.COM>
  4. Subject: Re: csh commands
  5. Originator: tchrist@pixel.convex.com
  6. Sender: usenet@news.eng.convex.com (news access account)
  7. Message-ID: <1992Aug18.163421.28736@news.eng.convex.com>
  8. Date: Tue, 18 Aug 1992 16:34:21 GMT
  9. Reply-To: tchrist@convex.COM (Tom Christiansen)
  10. References: <cld.713684023@gmhgate>
  11. Nntp-Posting-Host: pixel.convex.com
  12. Organization: CONVEX Realtime Development, Colorado Springs, CO
  13. Keywords: commands csh read file
  14. X-Disclaimer: This message was written by a user at CONVEX Computer
  15.               Corp. The opinions expressed are those of the user and
  16.               not necessarily those of CONVEX.
  17. Lines: 25
  18.  
  19. From the keyboard of cld@gmhgate.gmh.edu (Charles D'Englere):
  20. :I have been working on a project that requires that I use the csh shell
  21. :to work with the exsiting program. I have a few questions: 1 - Is there
  22. :a way to parse the command line using either pipes '|' or newlines - 
  23. :example
  24. :
  25. :ncs% cat $homedir/$1 |
  26. :
  27. :If I do this with a RETURN I get a "Invaild null command."
  28. :
  29. :2 - I need a routine to replace the following Bourne shell routine
  30. :
  31. :cat $homedir/$1 | while read EADDR IPADDR SW_VER
  32. :
  33. :to  a csh shell equivalent.
  34.  
  35. Your constraint of using csh dooms you to immense frustratation if you're
  36. lucky, and most likely to failure as well.
  37.  
  38. --tom
  39. -- 
  40.     Tom Christiansen      tchrist@convex.com      convex!tchrist
  41.  
  42.         "AT&T -- anything better is illegal."
  43.           -- Keith Lofstrom, comp.unix.bsd, "AT&T sues BSDI" thread
  44.