Path: utzoo!attcan!uunet!lll-winken!ames!ucsd!orion.cf.uci.edu!uci-ics!bonnie.ics.uci.edu!posert From: posert@bonnie.ics.uci.edu (Bob Posert) Newsgroups: comp.unix.questions Subject: Re: Line at a time scripts in csh Keywords: Solution Message-ID: <4311@paris.ics.uci.edu> Date: 17 Jan 89 01:07:32 GMT Sender: news@paris.ics.uci.edu Reply-To: posert@bonnie.ics.uci.edu (Bob Posert) Organization: University of California, Irvine - Dept of ICS Lines: 14 Thanks to everyone who sent me the solution: foreach i ("`cat file`") #whatever end And special thanks go to Mike Khaw, who correctly pointed out that you lose leading whitespace and lines that are only whitespace by doing the above. Fortunately, it didn't matter for my application. --Bob -- Bob Posert I'm: posert@bonnie.ics.uci.edu or {sdcsvax|ucbvax}!ucivax!bonnie!posert