Code:
set LASInputFile = `ls *.[Ll][Aa][Ss] | head -1`
set i=`cat $LASInputFile | wc -l`
set j=1
while ($j <= $i)
set line=`cat $LASInputFile | head -$j | tail -1`
@ j = $j + 1
# do your thing with $line here.
# for this example, we'll just echo
# it back the screen
echo $line
end