Some csh how-to, please
Brian T. White
white at white.cs.unc.edu
Wed Mar 29 03:23:27 AEST 1989
In article <2127 at pikes.Colorado.EDU>, pklammer at pikes.Colorado.EDU (Peter Klammer) writes:
> Could someone please tell me how to read a file line at a time
> into the C shell? Better yet, can you refer me to any good C-shell
> text.
Try "The UNIX C Shell Field Guide" by Anderson and Anderson. To read
a file one line at a time, try
foreach p ( "`cat file`" )
set line=`echo $p`
(commands acting on $line)
end
More information about the Comp.unix.questions
mailing list