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