Skip to content

Instantly share code, notes, and snippets.

@freespace
Created September 12, 2011 05:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save freespace/1210628 to your computer and use it in GitHub Desktop.
Save freespace/1210628 to your computer and use it in GitHub Desktop.
macross proof version
#!/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