Return to Snippet

Revision: 16334
at July 31, 2009 05:25 by mahome


Updated Code
while read line; do
 echo $line
done

# or

while read line; do
 echo $line
done < myFile

Revision: 16333
at July 31, 2009 05:24 by mahome


Initial Code
while read line; do
 echo $line
done

# or

while read line; do
 echo $line
done < file

Initial URL

                                

Initial Description
bash, read, line

1. $ cat myFile | readByLine
2. $ readByLine

Initial Title
Read file line by line

Initial Tags

                                

Initial Language
Bash