home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.shell
- Path: sparky!uunet!psinntp!gmhgate!gmhgate!cld
- From: cld@gmhgate.gmh.edu (Charles D'Englere)
- Subject: csh commands
- Message-ID: <cld.713684023@gmhgate>
- Summary: I need a good routine for reading in a file
- Keywords: commands csh read file
- Organization: Grady Memorial Hospital
- Date: Thu, 13 Aug 1992 05:33:43 GMT
- Lines: 19
-
- I have been working on a project that requires that I use the csh shell
- to work with the exsiting program. I have a few questions: 1 - Is there
- a way to parse the command line using either pipes '|' or newlines -
- example
-
- ncs% cat $homedir/$1 |
-
- If I do this with a RETURN I get a "Invaild null command."
-
- 2 - I need a routine to replace the following Bourne shell routine
-
- cat $homedir/$1 | while read EADDR IPADDR SW_VER
-
- to a csh shell equivalent.
-
- cld
- ----
- The world is like a big pie, everyone wants a piece of it ...
-
-