We have moved to www.dataGenX.net, Keep Learning with us.

Tuesday, June 26, 2012

Twelve Methods to Parse a File Line by Line — Part 2





Method 4:
cat $FILENAME | while LINE=`line`
do
echo "$LINE"
done



Method 5:
cat $FILENAME | while line LINE
do
echo "$LINE"
done



Method 6:
while LINE=`line`
do
echo "$LINE"
done < $FILENAME



njoy the simplicity.......
Atul Singh