Skip to content

Instantly share code, notes, and snippets.

@erikw
Created December 5, 2012 04:39
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 erikw/4212275 to your computer and use it in GitHub Desktop.
Save erikw/4212275 to your computer and use it in GitHub Desktop.
#!/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