Advertisement
Guest User

Untitled

a guest
May 19th, 2019
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.16 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. while read -r line
  4. do
  5. echo "Read: ${line}"
  6. done
  7.  
  8. # > cat sample.txt
  9. # hello
  10. # world
  11.  
  12. # > cat sample.txt | read_file.sh
  13. # Read: hello
  14. # Read: world
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement