How can I read one line at a time with C shell in unix How can I read one line at a time with C shell in unix unix unix

How can I read one line at a time with C shell in unix


I have managed to solve it using the next piece of code:

foreach line ("`grep $1 bank`")    echo $line    set line_break = ($line)   @ sum = $sum +$line_break[2]endecho $1\'s balance id: $sum\$


foreach line (awk {print $0} test_file)echo $lineend