cshell reading file line by line

view story

http://www.unix.com – hey all, I have this code : Code: #!/bin/tcsh -f set line=($<) while($#line > 0) echo $line[1] set line=($<) end the usage to run the script would be : Code: ./file < file2 Is there a way to specify filename in the script itself instead of getting/reading file name from STDIN ? Using : Code: set file=data instead of : Code: set line=($<) by the way I am aware of this : http://www.unix.com/shell-programmin...d-harmful.html I am just learning things... thanks. (HowTos)