Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!rutgers!mcnc!thorin!white!white From: white@white.cs.unc.edu (Brian T. White) Newsgroups: comp.unix.questions Subject: Re: Some csh how-to, please Keywords: csh C-shell shell programming unix read Message-ID: <7467@thorin.cs.unc.edu> Date: 28 Mar 89 17:23:27 GMT References: <2127@pikes.Colorado.EDU> Sender: news@thorin.cs.unc.edu Lines: 12 In article <2127@pikes.Colorado.EDU>, pklammer@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