Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site fortune.UUCP Path: utzoo!linus!philabs!cmcl2!floyd!harpo!seismo!hao!hplabs!hpda!fortune!olson From: olson@fortune.UUCP Newsgroups: net.unix Subject: Re: 'c' shell scripts - (nf) Message-ID: <2101@fortune.UUCP> Date: Thu, 22-Dec-83 19:08:38 EST Article-I.D.: fortune.2101 Posted: Thu Dec 22 19:08:38 1983 Date-Received: Sat, 24-Dec-83 10:44:09 EST Sender: notes@fortune.UUCP Organization: Fortune Systems, Redwood City, CA Lines: 17 #R:sri-arpa:-1450400:fortune:26900010:000:659 fortune!olson Dec 22 13:14:00 1983 While Jeff Bernardis' solution (to the problem of reading sequential lines from a file in a csh script) is quite nice, it is a solution for the BOURNE shell, NOT the csh. The original question asked how to do it for the csh. The equivalent of read is $<, but that reads from the standard input of the entire while loop, so the redirect is no good (see note in next para). The old equivalent was gets, (which wasn't a builtin), but even that is no good, since the csh does not allow you to redirect the input for a 'here' document, unlike the bourne shell. Hence the convolutions posted here to accomplish the required task. Dave Olson, Fortune Systems