Skip to content

Instantly share code, notes, and snippets.

@dlthomas
Created November 21, 2014 22:45
Show Gist options
  • Save dlthomas/237d26ea3ecfb0491191 to your computer and use it in GitHub Desktop.
Save dlthomas/237d26ea3ecfb0491191 to your computer and use it in GitHub Desktop.
Script to scroll a... err... script
#!/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