How to get the line number from while read

I have a file TXTPROCESS.TXT.20071129 in which line 1 contains the file name and rest of the records are data.

The file data looks like this:

TXTPROCESS.TXT.20071129
DIVD20071129
INTR20071129
BALN20071129

From line 2 onwards the first 4 characters defines individual process. What I need to do is read through the line and check if it is not line 1 then exectute individual process. My problem is I don't know how to check the line number. This code gives me one line at time for all the lines.

cat TXTPROCESS.TXT.20071129 | while read LINE
do
echo $LINE
done

Any idea?

Thanks

Wont this suffice?

count=0
cat TXTPROCESS.TXT.20071129 | while read file
do
if [ $count -eq 0 ];then
(count+=1))
continue
fi
echo $line
done

its much more comfortable with awk

try this,

awk '{ print $0, NR }' b

this prints the content read from a line and the line number

to skip first line and print only the first 4 characters from the remaining

awk ' NR != 1 { print substr($0, 1, 4) }' b