tldr/pages/common/cowsay.md

29 lines
651 B
Markdown
Raw Normal View History

2016-01-02 22:59:49 +00:00
# cowsay
2021-05-20 20:18:23 +01:00
> Print ASCII art (by default a cow) saying or thinking something.
2019-06-09 00:05:29 +01:00
> More information: <https://github.com/tnalpgge/rank-amateur-cowsay>.
2016-01-02 22:59:49 +00:00
2021-05-20 20:18:23 +01:00
- Print an ASCII cow saying "hello, world":
2016-01-02 22:59:49 +00:00
2021-05-20 20:18:23 +01:00
`cowsay "{{hello, world}}"`
2016-01-02 22:59:49 +00:00
2021-05-20 20:18:23 +01:00
- Print an ASCII cow saying text from stdin:
2019-06-14 18:13:39 +01:00
2021-05-20 20:18:23 +01:00
`echo "{{hello, world}}" | cowsay`
2019-06-14 18:13:39 +01:00
2021-05-20 20:18:23 +01:00
- List all available art types:
2017-05-24 23:01:10 +01:00
`cowsay -l`
2021-05-20 20:18:23 +01:00
- Print the specified ASCII art saying "hello, world":
2016-01-02 22:59:49 +00:00
2021-05-20 20:18:23 +01:00
`cowsay -f {{art}} "{{hello, world}}"`
2016-01-02 22:59:49 +00:00
2021-05-20 20:18:23 +01:00
- Print a dead thinking ASCII cow:
2016-01-02 22:59:49 +00:00
2021-05-20 20:18:23 +01:00
`cowthink -d "{{I'm just a cow, not a great thinker...}}"`
- Print an ASCII cow with custom eyes saying "hello, world":
`cowsay -e {{characters}} "{{hello, world}}"`