Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- if [ $# -ne 1 ]; then
- echo "you are doing it wrong"
- echo "Usage: $0 <file>"
- exit 1;
- fi
- IFS="
- "
- while [ 1 ]; do
- if [ -e "$1" ]
- then
- for line in $(cat "$1")
- do
- echo "$line"
- sleep 1;
- done
- else
- echo "what trickery is this"
- exit 2
- fi
- done
Add Comment
Please, Sign In to add comment