I'm trying to read first row from the file
> source ./rank file
using this script
set line = ($<) <- inside rank
but when I enter
echo $line
I receive nothing, how can I change it? thanks in advance
I'm trying to read first row from the file
> source ./rank file
using this script
set line = ($<) <- inside rank
but when I enter
echo $line
I receive nothing, how can I change it? thanks in advance
Since csh is brain-dead, you'll have to do something like this:
set line = `head -n 1 filename`