A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
-bash/zsh: cowsay command not found # Windows (WSL2) sudo apt-get update sudo apt-get install cowsay # Debian apt-get install cowsay # Ubuntu apt-get install cowsay # Arch Linux pacman -S cowsay # Kali Linux apt-get install cowsay # Fedora dnf install cowsay # OS X brew install cowsay # Raspbian apt-get install cowsay # Dockerfile dockerfile.run/cowsay
_____________________ < Hi, CommandNotFound > --------------------- \ ^__^ \ (oo)\_______ (__)\ )\/\ ||----w | || ||
cowsay 命令很有趣,显示器上面显示一头奶牛。cowsay 基本上是一个文本过滤器。向其中发送一些文本,你就会得到一头奶牛说出你的文本。如果你觉得一头会说话的奶牛还不够,奶牛也会思考。你所要做的就是运行 cowthink。
cowsay [-bdgpstwy] [-h] [-e eyes] [-f cowfile] [-l] [-n] [-T tongue] [-W wrapcolumn] [message]
FILE The CSV file to operate on. If omitted, will accept input as piped data via STDIN.
The -W specifies roughly (where the message should be wrapped. The default is equivalent to -W 40 i.e. wrap words at or before the 40th column. If any command-line arguments are left over after all switches have been processed, they become the cow's message. The program will not accept standard input for a message in this case. There are several provided modes which change the appearance of the cow depending on its particular emotional/physical state. The -b option initiates Borg mode; -d causes the cow to appear dead; -g invokes greedy mode; -p causes a state of paranoia to come over the cow; -s makes the cow appear thoroughly stoned; -t yields a tired cow; -w is somewhat the opposite of -t, and initiates wired mode; -y brings on the cow's youthful appearance. The user may specify the -e option to select the appearance of the cow's eyes, in which case the first two characters of the argument string eye_string will be used. The default eyes are 'oo'. The tongue is similarly configurable through -T and tongue_string; it must be two characters and does not appear by default. However, it does appear in the 'dead' and 'stoned' modes. Any configuration done by -e and -T will be lost if one of the provided modes is used. 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 with the -l switch. If the program is invoked as cowthink then the cow will think its message instead of saying it.
cowsay 打印一头 ASCII 牛说 “你好,世界”:
cowsay "hello, world" ______________ < hello, world > -------------- \ ^__^ \ (oo)\_______ (__)\ )\/\ ||----w | || ||
cowsay 从 stdin 打印 ASCII 牛说文本:
echo "hello, world" | cowsay ______________ < hello, world > -------------- \ ^__^ \ (oo)\_______ (__)\ )\/\ ||----w | || ||
cowsay 列出所有可用的艺术类型:
cowsay -l Cow files in /usr/share/cowsay/cows: apt bud-frogs bunny calvin cheese cock cower daemon default dragon dragon-and-cow duck elephant elephant-in-snake eyes flaming-sheep fox ghostbusters gnu hellokitty kangaroo kiss koala kosh luke-koala mech-and-cow milk moofasa moose pony pony-smaller ren sheep skeleton snowman stegosaurus stimpy suse three-eyes turkey turtle tux unipony unipony-smaller vader vader-koala www
cowsay 打印指定的 ASCII 艺术 “hello, world”:
cowsay -f tux "hello, world" ______________ < hello, world > -------------- \ \ .--. |o_o | |:_/ | // \ \ (| | ) /'\_ _/`\ \___)=(___/ cowsay -f dragon "hello, world" ______________ < hello, world > -------------- \ / \ //\ \ |\___/| / \// \\ /0 0 \__ / // | \ \ / / \/_/ // | \ \ @_^_@'/ \/_ // | \ \ //_^_/ \/_ // | \ \ ( //) | \/// | \ \ ( / /) _|_ / ) // | \ _\ ( // /) '/,_ _ _/ ( ; -. | _ _\.-~ .-~~~^-. (( / / )) ,-{ _ `-.|.-~-. .~ `. (( // / )) '/\ / ~-. _ .-~ .-~^-. \ (( /// )) `. { } / \ \ (( / )) .----~-.\ \-' .~ \ `. \^-. ///.----..> \ _ -~ `. ^-` ^-_ ///-._ _ _ _ _ _ _}^ - - - - ~ ~-- ,.-~ /.-~ └─$ cowsay -f calvin "hello, world" ______________ < hello, world > -------------- \ ., \ . .TR d' \ k,l .R.b .t .Je \ .P q. a|.b .f .Z% .b .h .E` # J: 2` . .,.a .E ,L.M' ?:b `| ..J9!`., q,.h.M` `.., ..,""` ..2"` .M, J8` `: ` 3; . Jk ..., `^7"90c. j, ,! .7"'`j,.| .n. ... j, 7' .r` 4: L `... ..,m. J` ..,|.. J` 7TWi ..JJ,.: % oo ,. ...., .,E 3 7`g.M: P 41 JT7"' O. .J,; `` V"7N. G. ""Q+ .Zu.,!` Z` .9.. . J&..J! . ,: 7"9a JM"! .5J. .. ..F` 78a.. ` ..2' J9Ksaw0"' .EJ?A...a. q...g...gi .m...qa..,y: .HQFNB&...mm ,Z|,m.a.,dp .,?f` ,E?:"^7b `A| . .F^^7'^4, .MMMMMMMMMMMQzna, ...f"A.JdT J: Jp, `JNa..........A....af` `^^^^^'`
cowthink 打印一头思考着的 ASCII 牛:
cowthink -d "I'm just a cow, not a great thinker..." ________________________________________ ( I'm just a cow, not a great thinker... ) ---------------------------------------- o ^__^ o (xx)\_______ (__)\ )\/\ U ||----w | || ||
cowsay 打印一头具有自定义眼睛的 ch
牛,说 “hello, world”:
cowsay -e characters "hello, world" ______________ < hello, world > -------------- \ ^__^ \ (ch)\_______ (__)\ )\/\ ||----w | || ||