Is there a linux program similar to cowsay, but breeding a cat, instead of a cow?
Closed due to the fact that it is necessary to reformulate the question so that you can give an objectively correct answer to the participants 0xdb , MSDN.WhiteKnight , AK ♦ , andreymal , cheops 17 Sep '18 at 5:43 .
The question gives rise to endless debates and discussions based not on knowledge, but on opinions. To get an answer, rephrase your question so that it can be given an unambiguously correct answer, or delete the question altogether. If the question can be reformulated according to the rules set out in the certificate , edit it .
- 3why not search in the search engine. Found on the first search page github.com/audy/catsay - ArchDemon
1 answer
cowsay can take out not only cowsay from the box, but also a whole range of other “cows” animals (from chickens to elephants and snakes). The entire list can be obtained from himself:
$ cowsay -l Cow files in /usr/share/cowsay/cows: apt beavis.zen bong bud-frogs bunny calvin cheese cock cower daemon default dragon dragon-and-cow duck elephant elephant-in-snake eyes flaming-sheep ghostbusters gnu head-in hellokitty kiss koala kosh luke-koala mech-and-cow milk moofasa moose mutilated pony pony-smaller ren sheep skeleton snowman sodomized-sheep stegosaurus stimpy suse three-eyes turkey turtle tux unipony unipony-smaller vader vader-koala www You can use the corresponding cows with the -f :
$ cowsay -f elephant-in-snake "На самом деле я съела шляпу, а не слона, но ни кому не говорите." ___________________________________ / На самом деле я съела шляпу, а не \ \ слона. Но ни кому не говорите. / ----------------------------------- \ \ .... . ........ . . . . ....... ......... .............................. Unfortunately, the authors made a terrible omission and did not include a single cat in the basic delivery. Fortunately, this is easy to fix: you just need to create your own cat in the shape of a cat. In fact, cows are perl-scripts, although they are fairly simple, but you should be careful when writing them. Examples can be found in /usr/share/cowsay/cows . ? whoever, like me, is not endowed with the skill of ASCII-art, you can simply find a cat in Google and paint him an arrow of direct speech:
$ cat ~/tmp/cat.cow ## an ASCII cat found in google $the_cow = <<"EOC" $thoughts $thoughts |\\_._/| |-oo-| ( T ) .^`-^-'^. `. ; .' | | | | | ((_((|))_)) EOC Result:
$ cowsay -f ~/tmp/cat.cow "Кошки это хорошо." ___________________ < Кошки это хорошо. > ------------------- \ \ |\_._/| |-oo-| ( T ) .^`-^-'^. `. ; .' | | | | | ((_((|))_)) In order to make a cat a cow available without specifying the full path, you can put it to the others in /usr/share/cowsay/cows or add your path to it to the COWPATH variable.
Remarks:
Before launching the script, special variables are set,
$thoughts,$eyesand$tongue, in which images for thoughts, eyes and language are stored, respectively.in HEREDOC pearl, as above, the bexleshes need to be further escaped.
See
man cowsay