tldr/pages/common/cowsay.md

22 lines
592 B
Markdown
Raw Normal View History

2016-01-02 22:59:49 +00:00
# cowsay
> Generate an ASCII character like a cow or sheep saying or thinking something.
> Available characters are stored in the /usr/share/cowsay on Linux.
2017-02-06 15:54:48 +00:00
> And /usr/local/share/cows/ on Mac.
2016-01-02 22:59:49 +00:00
- Print an ASCII cow saying "Hello world!":
2016-01-02 22:59:49 +00:00
`cowsay "Hello world!"`
- Print an ASCII dragon saying "Hello!":
2016-01-02 22:59:49 +00:00
`echo "Hello!" | cowsay -f dragon`
- Print a stoned thinking ASCII cow:
2016-01-02 22:59:49 +00:00
`cowthink -s "I'm just a cow, not a great thinker ..."`
2017-02-03 21:18:11 +00:00
- Print out a list of all characters with cowsay:
`ls -1 {{cowsay_character_directory}} | rev | cut -c 5- | rev | xargs -I _ cowsay -f _ cowsay -f _`