cowsayというジョークコマンドを使うと、台詞付きのAAを出力できます。
導入
$ brew install cowsay ==> Downloading http://ftp.acc.umu.se/mirror/cdimage/snapshot/Debian/pool/main/c ######################################################################## 100.0% ==> /bin/sh install.sh /usr/local/Cellar/cowsay/3.03 🍺 /usr/local/Cellar/cowsay/3.03: 53 files, 228K, built in 3 seconds
実際のところ
$ cowsay Hello!
________
< Hello! >
--------
\ ^__^
\ (oo)\_______
(__)\ )\/\
||----w |
|| ||$ cowsay -f vader NO, I AM YOUR FATHER...
_________________________
< NO, I AM YOUR FATHER... >
-------------------------
\ ,-^-.
\ !oYo!
\ /./=\.\______
## )\/\
||-----w||
|| ||
Cowth Vader
$ cowsay -f luke-koala NOOOOOOOOO
____________
< NOOOOOOOOO >
------------
\
\ .
___ //
{~._.~}//
( Y )K/
()~*~()
(_)-(_)
Luke
Sywalker
koala ...なんなのコレ(震え声
何を表示できるのか
上でやったように、牛以外にも色々います
$ 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
試しにvader様をみてみると
$ cat /usr/local/Cellar/cowsay/3.03/share/cows/vader.cow
##
## Cowth Vader, from geordan@csua.berkeley.edu
##
$the_cow = <<EOC;
$thoughts ,-^-.
$thoughts !oYo!
$thoughts /./=\\.\\______
## )\\/\\
||-----w||
|| ||
Cowth Vader
EOCとなってます。
manすると*1
The -f option specifies a particular cow picture file (``cowfile'') to
use. If the cowfile spec contains '/' then it will be interpreted as a
path relative to the current directory. Otherwise, cowsay will search
the path specified in the COWPATH environment variable. To list all
cowfiles on the current COWPATH, invoke cowsay with the -l switch.とあるので、このファイルを叩き台にしてyaruo.cowを以下のような内容で作ると
##
## Yaruo, from http://ja.wikipedia.org/wiki/%E3%82%84%E3%82%8B%E5%A4%AB
##
$the_cow = <<EOC;
____
/⌒ ⌒\
/ ( ●) (●)\
/::::::⌒(__人__)⌒:::\ :
| | r┬-| |
\ `ー' /
Yaruo
EOC$ cowsay -f yaruo だからニュー速でやるお!
______________________________________
< だからニュー速でやるお! >
--------------------------------------
____
/⌒ ⌒\
/ ( ●) (●)\
/::::::⌒(__人__)⌒:::\ :
| | r┬-| |
\ `ー' /
Yaruoとできます。
やったね(白目
参考もと
*1:こんなジョークコマンドにまでこんなのがある時点で実に業が深い...