Created
December 5, 2012 04:39
-
-
Save erikw/4212275 to your computer and use it in GitHub Desktop.
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
#!/usr/bin/env bash | |
trim_method="roll" # Can be {trim or roll). | |
max_len=30 # Trim output to this length. | |
roll_speed=2 # Roll speed in chraacters per second. | |
segment_path=$(dirname $0) | |
source "$segment_path/../lib.sh" | |
np="A pretty long line for a song title eh?" | |
np=$(roll_text "${np}" ${max_len} ${roll_speed}) | |
echo "♫ ${np}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment