Posted By

mahome on 07/31/09


Tagged


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

endorfin


Read file line by line


 / Published in: Bash
 

bash, read, line

  1. $ cat myFile | readByLine
  2. $ readByLine
  1. while read line; do
  2. echo $line
  3. done
  4.  
  5. # or
  6.  
  7. while read line; do
  8. echo $line
  9. done < myFile

Report this snippet  

You need to login to post a comment.