On Mon, Nov 07, 2011 at 12:40:43PM -0800, Linda Walsh wrote: > # <filename while read ln; do echo $ln; done
You are not allowed to put redirections in front of a compound command (such as while). Redirections must always appear at the end of a compound command. Redirections can appear anywhere within a *simple* command only.