'c' shell scripts - (nf)

jacob%nrl-css at sri-unix.UUCP jacob%nrl-css at sri-unix.UUCP
Thu Jan 5 03:59:00 AEST 1984


From:  Rob Jacob <jacob at nrl-css>

What's wrong with sed rather than head + tail to read successive (single)
lines of a file from a cshell script?  Should be faster than head + tail.
Like this--

	#! /bin/csh
	@ x = 1
	while ($x < ??)
		sed -n ${x}p FILE | ..wherever...
		@ x = $x + 1
	end

Or the mailer mangle a previous message on this topic?

Rob Jacob
jacob at nrl-css



More information about the Comp.unix mailing list