Guest User

Untitled

a guest
May 19th, 2019
68
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
RAW Paste Data