home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.shell
- Path: sparky!uunet!cs.utexas.edu!convex!convex!tchrist
- From: Tom Christiansen <tchrist@convex.COM>
- Subject: Re: csh commands
- Originator: tchrist@pixel.convex.com
- Sender: usenet@news.eng.convex.com (news access account)
- Message-ID: <1992Aug18.163421.28736@news.eng.convex.com>
- Date: Tue, 18 Aug 1992 16:34:21 GMT
- Reply-To: tchrist@convex.COM (Tom Christiansen)
- References: <cld.713684023@gmhgate>
- Nntp-Posting-Host: pixel.convex.com
- Organization: CONVEX Realtime Development, Colorado Springs, CO
- Keywords: commands csh read file
- X-Disclaimer: This message was written by a user at CONVEX Computer
- Corp. The opinions expressed are those of the user and
- not necessarily those of CONVEX.
- Lines: 25
-
- From the keyboard of cld@gmhgate.gmh.edu (Charles D'Englere):
- :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.
-
- Your constraint of using csh dooms you to immense frustratation if you're
- lucky, and most likely to failure as well.
-
- --tom
- --
- Tom Christiansen tchrist@convex.com convex!tchrist
-
- "AT&T -- anything better is illegal."
- -- Keith Lofstrom, comp.unix.bsd, "AT&T sues BSDI" thread
-