home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / unix / shell / 3482 < prev    next >
Encoding:
Text File  |  1992-08-13  |  877 b   |  31 lines

  1. Newsgroups: comp.unix.shell
  2. Path: sparky!uunet!psinntp!gmhgate!gmhgate!cld
  3. From: cld@gmhgate.gmh.edu (Charles D'Englere)
  4. Subject: csh commands
  5. Message-ID: <cld.713684023@gmhgate>
  6. Summary: I need a good routine for reading in a file
  7. Keywords: commands csh read file
  8. Organization: Grady Memorial Hospital
  9. Date: Thu, 13 Aug 1992 05:33:43 GMT
  10. Lines: 19
  11.  
  12. I have been working on a project that requires that I use the csh shell
  13. to work with the exsiting program. I have a few questions: 1 - Is there
  14. a way to parse the command line using either pipes '|' or newlines - 
  15. example
  16.  
  17. ncs% cat $homedir/$1 |
  18.  
  19. If I do this with a RETURN I get a "Invaild null command."
  20.  
  21. 2 - I need a routine to replace the following Bourne shell routine
  22.  
  23. cat $homedir/$1 | while read EADDR IPADDR SW_VER
  24.  
  25. to  a csh shell equivalent.
  26.  
  27. cld 
  28. ----
  29. The world is like a big pie, everyone wants a piece of it ...
  30.  
  31.