Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10 beta 3/9/83; site dual.UUCP Path: utzoo!linus!security!genrad!mit-eddie!mit-vax!eagle!harpo!seismo!hao!hplabs!hpda!fortune!amd70!dual!fair From: fair@dual.UUCP (Erik E. Fair) Newsgroups: net.unix Subject: Re: 'c' shell scripts - (nf) Message-ID: <206@dual.UUCP> Date: Wed, 4-Jan-84 01:27:10 EST Article-I.D.: dual.206 Posted: Wed Jan 4 01:27:10 1984 Date-Received: Sat, 31-Dec-83 01:13:38 EST References: <2101@fortune.UUCP> Organization: Dual Systems, Berkeley, CA Lines: 14 I once used `a-truly-ugly-and-evil' way to read successive lines of a file for csh. Combinations of head and tail can do the trick: # To keep the evil sh away... set x=1 while ($x < ????) head -$x FILE | tail -1 (or minus however many lines you want) end It is interminably slow (but then what can you expect with a two process pipe being invoked to read successive line(s) of a file?). Erik E. Fair {ucbvax,amd70,zehntel,unisoft,onyx,its}!dual!fair Dual Systems Corporation, Berkeley, California