||09-01-2012 02:19 PM
Originally Posted by eawedat
Is there a way to specify filename in the script itself instead of getting/reading file name from STDIN?
Nope. The bad new is that the C-shell lacks a real read
statement and you can read only from the standard input. The good new is that you can use some trick or better... an external (opposite to shell built-in) command like cat
to feed a loop. For example:
foreach line ( "`cat file2`" )
You may also take a look at this
thread for some other clues about reading and parsing the content of a file. Hope this helps.