"for" loop in unix c-shell script
Posted on 2001-06-03
I am well known with gerenal shell scripts .
I want to use "for" loop widly .
for example :
set lines = `cat file | wc -l`
for ($i=0 ; $i <= $lines ; @ i += 1) # you can see I don't know the syntax !!!
I want to have a full example .
I have no time for reading neither LINKS nor MAN .
please send a short example (10 - 20) lines ,
for c-shell format .
if the answer is correct it will be 100 points+A