Skip to content

Instantly share code, notes, and snippets.

@orkoden orkoden/allthecows.rb
Last active Aug 29, 2015

What would you like to do?
Get all the cows cowsay has to offer to say a random quote
Dir.foreach("/usr/local/Cellar/cowsay/3.03/share/cows") {|cow| puts cow; system "fortune | cowsay -f /usr/local/Cellar/cowsay/3.03/share/cows/#{cow}" }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.