'c' shell scripts

jjb at pyuxnn.UUCP jjb at pyuxnn.UUCP
Wed Dec 21 04:48:59 AEST 1983


When I first saw this question, the way in which I would do it
seemed obvious but it was interesting to note that none of the
posted solutions were what I would have done.  With that in mind,
I felt I had to get my two cents worth in:

	while read line
	do
		.
		.
		process the line here
		.
		.
	done <file

I much prefer this solution to using exec;  It's really debatable
which one is more efficient.  I don't think there is any basis for
comparing this solution to the use of awk or sed.

			Jeff Bernardis, AT&T Western Electric @ Piscataway NJ
			{eagle, allegra, cbosgd, ihnp4}!pyuxnn!jjb



More information about the Comp.unix mailing list