Created
September 12, 2011 05:07
-
-
Save freespace/1210628 to your computer and use it in GitHub Desktop.
macross proof version
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment