Fortune / Cowsay
guenstigwerben Aug 5th, 2015 2,489 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- # This script gets a random available cow with `cowsay -l` and prints some text, default fortune
- for COWNAME in `cowsay -l | tail -n +2`
- RANDOMCOW=$(echo -e $COWS | sort -R | head -n 1)
- $FORTUNE | cowsay -f $RANDOMCOW
RAW Paste Data