#!/bin/csh -f @ lc = 1 loop: set rec = `/bin/head -$lc /opt/etc/rotate | /bin/tail -1` # test for last line # test for comment set fc = "`/bin/echo $rec | /bin/awk `" echo "fc=" $fc echo "line" $lc "=" $rec @ lc++ goto loop