Skip to content

Instantly share code, notes, and snippets.

@ideamonk
Forked from abhin4v/random_cow_fortune.sh
Created April 15, 2011 12:45
Show Gist options
  • Save ideamonk/921634 to your computer and use it in GitHub Desktop.
Save ideamonk/921634 to your computer and use it in GitHub Desktop.
fortune -s -n 100 | cowsay -f `ls -1 /usr/local/Cellar/cowsay/3.03/share/cows/ | sed s/\.cow// | tail -n +\`echo $(( 1 + (\\\`od -An -N2 -i /dev/random\\\`) % (\\\`ls -1 /usr/local/Cellar/cowsay/3.03/share/cows/ | wc -l\\\`) ))\` | head -1`
@ideamonk
Copy link
Author

modified random cows for homebrew users on os x :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment