1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/common/cowsay.md

22 lines
592 B
Markdown
Raw Normal View History

2016-01-02 23:59:49 +01: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 10:54:48 -05:00
> And /usr/local/share/cows/ on Mac.
2016-01-02 23:59:49 +01:00
- Print an ASCII cow saying "Hello world!":
2016-01-02 23:59:49 +01:00
`cowsay "Hello world!"`
- Print an ASCII dragon saying "Hello!":
2016-01-02 23:59:49 +01:00
`echo "Hello!" | cowsay -f dragon`
- Print a stoned thinking ASCII cow:
2016-01-02 23:59:49 +01:00
`cowthink -s "I'm just a cow, not a great thinker ..."`
2017-02-03 16:18:11 -05: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 _`