Skip to content

Instantly share code, notes, and snippets.

@ivanrosolen
Last active August 31, 2016 10:17
Show Gist options
  • Select an option

  • Save ivanrosolen/40996d52ca9efafd9a70a54f51f78442 to your computer and use it in GitHub Desktop.

Select an option

Save ivanrosolen/40996d52ca9efafd9a70a54f51f78442 to your computer and use it in GitHub Desktop.
fortune | cowsay | lolcat
#!/bin/bash
imgs=("blowfish" "bong" "bud-frogs" "bunny" "cheese" "cower" "daemon" "default" "dragon" "dragon-and-cow" "elephant" "elephant-in-snake" "eyes" "flaming-sheep" "ghostbusters" "head-in" "hellokitty" "kiss" "kitty" "koala" "kosh" "luke-koala" "meow" "milk" "moofasa" "moose" "mutilated" "ren" "satanic" "sheep" "skeleton" "small" "sodomized" "stegosaurus" "stimpy" "supermilker" "surgery" "telebears" "three-eyes" "turkey" "turtle" "tux" "udder" "vader")
count=${#imgs[@]}
rand=$[ $RANDOM % $count ]
eval "fortune | cowsay -n -f ${imgs[$rand]} | lolcat"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment