Re: tcsh read loop
From: Bruce Barnett (spamhater103+U040912213736_at_grymoire.com)
Date: 13 Sep 2004 01:39:08 GMT
Christopher W Aiken <firstname.lastname@example.org> writes:
> In sh/bash I can use a loop like this to process text lines:
> while read line
> echo $line
> done < some_text_file.txt
> Can this type of loop, that reads a complete line from a file, be done in
> csh/tcsh? How?
Only if the file you are reading is STDIN.
http://www.grymoire.com/Unix/CshTop10.txt - Top 10 reasons not to use the C shell.
This is reason #5.
You have to split this script into smaller scripts, and change STDIN.
-- Sending unsolicited commercial e-mail to this account incurs a fee of $500 per message, and acknowledges the legality of this contract.