Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- while read -r line
- do
- echo "Read: ${line}"
- done
- # > cat sample.txt
- # hello
- # world
- # > cat sample.txt | read_file.sh
- # Read: hello
- # Read: world
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement