Created
November 21, 2014 22:45
-
-
Save dlthomas/237d26ea3ecfb0491191 to your computer and use it in GitHub Desktop.
Script to scroll a... err... script
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 | |
DELAY=${1:-1s} | |
FILE="${2:-12-latest.txt}" | |
clear | |
sed '0,/<start>/d;/<end>/,$d' "$FILE" | while read; do | |
echo "$REPLY" | |
echo | |
echo | |
sleep $DELAY | |
done | |
while true; do | |
echo | |
sleep $DELAY | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment