Mack Wallace <mac...@mapinternet.com> once said: > Another, probably more stupid question - How does one read a text file > line by line in an rc script.
You should really read the rc(1) man page. It will answer your questions. Here the functions foo and bar are equivalent: fn foo { <$1 while(l = `{read}) echo $l } fn bar { { while(l = `{read}) echo $l } <$1 } Think about why this one is not like the others: fn baz { while(l = `{read}){ echo $l } <$1 } Cheers, Anthony