Dec 28, 2008
Some Ways of reading file line by line
1) while_read_LINE () { cat $FILENAME | while read LINE do echo “$LINE” done } 2) function while_read_LINE_bottom { while read LINE do echo “$LINE” done < $FILENAME } 3) function while_line_LINE_bottom { while line LINE do echo $LINE done < $FILENAME } 4) function cat_while_LINE_line { cat $FILENAME | while LINE=`line` do echo “$LINE” : done } |
Post a Comment