Here we are continues the magic. You can find all parts here ….
TwelveMethods to Parse a File Line by Line — Part 1
TwelveMethods to Parse a File Line by Line — Part 2
TwelveMethods to Parse a File Line by Line — Part 3
TwelveMethods to Parse a File Line by Line — Part 4
TwelveMethods to Parse a File Line by Line — Part 1
TwelveMethods to Parse a File Line by Line — Part 2
TwelveMethods to Parse a File Line by Line — Part 3
TwelveMethods to Parse a File Line by Line — Part 4
Method 4:
cat $FILENAME | while LINE=`line`
do
echo "$LINE"
done
cat $FILENAME | while LINE=`line`
do
echo "$LINE"
done
Method 5:
cat $FILENAME | while line LINE
do
echo "$LINE"
done
cat $FILENAME | while line LINE
do
echo "$LINE"
done
while LINE=`line`
do
echo "$LINE"
done < $FILENAME
njoy the simplicity.......
Atul Singh