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 1






Method 1:

cat $FILENAME | while read LINE
do
echo "$LINE"
done



Method 2:
while read LINE
do
echo "$LINE"
done < $FILENAME


Method 3:
while line LINE
do
echo $LINE
done < $FILENAME




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