I was writing a small shell script to read and print lines of a file.
#!/bin/csh
set IN_FILE=$1
set i=1
foreach line ( "`cat $IN_FILE`" )
  set F$i="`echo $line`"
  echo ${F${i}}
  @ i = $i + 1
end
Upon executing, I am getting the following error
Missing '}'.
I was wondering how to echo a variable, which contains another variable in its name.
 
     
    