Skip to content

Instantly share code, notes, and snippets.

@olegwtf
Created August 31, 2012 11:29
Show Gist options
  • Save olegwtf/3551687 to your computer and use it in GitHub Desktop.
Save olegwtf/3551687 to your computer and use it in GitHub Desktop.
The only real random cowsay
while true; do fortune | cowsay -f $(ls -d1 /usr/share/cowsay/cows/* | shuf | head -n1) "$([ $[$RANDOM%10] == 0 ] || echo "-"$(echo -e "b\nd\ng\np\ns\nt\nw\ny"|shuf|tail -n1))" && sleep 3; done
@kilex
Copy link

kilex commented Aug 31, 2012

-s язык показывает. но только на корове вроде работает

@olegwtf
Copy link
Author

olegwtf commented Sep 2, 2012

Тут -s тоже используется. Точнее по рандому одно из -b -d -g -p -s -t -w -y

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