cowsay generates an ASCII picture of a cow saying something provided by the user.
$ cowsay Hi There __________ < Hi There > ---------- \ ^__^ \ (oo)\_______ (__)\ )\/\ ||----w | || ||
Useful Options / Examples
There are many useful options for this intersting cowsay command.
The complete list is: cowsay
-eallows the user to customize the cow’s eyes which are defaulted to “oo” as seen above.
-Tallows the user to add a tongue string to the cow image. By default there is no tongue string.
-Wallows the user to customize the number of character printed in the message before the message wraps around
-[-bdgpstwy]are all options to define different pre-made cows emotional states. For example, adding the
-gflag will result in a greedy cow to print and
-swill result in a stoned cow to print.
cowsay [-bdgpstwy] [user_input]
$ cowsay -s hi there __________ < hi there > ---------- \ ^__^ \ (**)\_______ (__)\ )\/\ U ||----w | || ||
Break it down
- There are several provided modes which change the appearance of the cow depending on its particular emotional/physical state
- The user can set this state using these flags
cowsay [-f cowfile] [user_string]
$ cowsay -f tux hi there __________ < hi there > ---------- \ \ .--. |o_o | |:_/ | // \ \ (| | ) /'\_ _/`\ \___)=(___/
Break it down
-fflag allows for other ascii images to be printed
- These images are pulled from .cow files, some of which come preinstalled and the full list can be found by typing:
$ cowsay -l Cow files in /usr/local/Cellar/cowsay/3.03/share/cows: beavis.zen bong bud-frogs bunny cheese cower daemon default dragon dragon-and-cow elephant elephant-in-snake eyes flaming-sheep ghostbusters head-in hellokitty kiss kitty koala kosh luke-koala meow milk moofasa moose mutilated ren satanic sheep skeleton small sodomized stegosaurus stimpy supermilker surgery telebears three-eyes turkey turtle tux udder vader vader-koala www
Break it Down
-lflag lists all pre-made .cow files that are immediatly at the users disposal.
cowsay [-e eye_string] [-T tongue_string] [-W column]
$ cowsay -e ^^ -T U -W 10 Hi there computing for computer scientists, this stuff is really interesting! ___________ / Hi there \ | computing | | for | | computer | | scientist | | s, this | | stuff is | | really | | interesti | \ ng! / ----------- \ ^__^ \ (^^)\_______ (__)\ )\/\ U ||----w | || ||
Break it down
-eflag allows the user to customize the cow’s eyes
-Tallows the user to enter a string to be used as the Cow’s tongue (the string must be two characters or less)
-Wspecifies the number of charcters to be printed in the cow’s message before the characters wrap around. The defualt is 40 if none is specified