Line at a time scripts in csh

Bob Posert posert at bonnie.ics.uci.edu
Tue Jan 17 11:07:32 AEST 1989


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 at bonnie.ics.uci.edu or {sdcsvax|ucbvax}!ucivax!bonnie!posert 



More information about the Comp.unix.questions mailing list