Skip to content

Instantly share code, notes, and snippets.

@daeyun
Created June 7, 2012 15:52
Show Gist options
  • Save daeyun/2889604 to your computer and use it in GitHub Desktop.
Save daeyun/2889604 to your computer and use it in GitHub Desktop.
#!/bin/bash
rand_highlight() { tr -dc $1 < /dev/urandom | head -c$2 | sed -e ''s/$3/`printf "\033[32m\033[40m$4\033[0m"`/g'';echo; }; rand_highlight shin 500 shin shin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment