Redirection

Pete Holsberg pjh at mccc.UUCP
Wed Jul 19 04:21:32 AEST 1989


In a shell script (Bourne, SV), it is possible to redirect into a read
statement that's in a loop like this:

	while
		read x
	do
		<......>
	done < file
	
but not like this:

	while
		read x < file
	do
		<.....>
	done
	
How come???  Please email and I will post a summary if tere's any interest.

Thanks.

-- 
Pete Holsberg -- Mercer College -- Trenton, NJ 08690
...!rutgers!njin!princeton!njsmu!mccc!pjh



More information about the Comp.unix.questions mailing list