'c' shell scripts - (nf)
Erik E. Fair
fair at dual.UUCP
Wed Jan 4 16:27:10 AEST 1984
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
More information about the Comp.unix
mailing list