TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Cowsay recursion

6 pointsby juliusdaviesabout 15 years ago

2 comments

ggchappellabout 15 years ago
You can have some real fun combining cowsay with figlet:<p><pre><code> $ echo i am a cow | figlet -f small | cowsay -n _________________________________________ / _ \ | (_) __ _ _ __ __ _ __ _____ __ __ | | | | / _` | ' \ / _` | / _/ _ \ V V / | | |_| \__,_|_|_|_| \__,_| \__\___/\_/\_/ | \ / ----------------------------------------- \ ^__^ \ (oo)\_______ (__)\ )\/\ ||----w | || || </code></pre> BTW, both are in the standard Ubuntu repositories.<p>EDIT: Ha! That idea is already in the cowsay man page. GMTA.
评论 #1154635 未加载
mhartlabout 15 years ago
<p><pre><code> [~]$ cowsay -bash: cowsay: command not found [~]$ sudo port install cowsay ---&#62; Fetching cowsay ---&#62; Attempting to fetch cowsay-3.03.tar.gz ---&#62; Verifying checksum(s) for cowsay ---&#62; Extracting cowsay ---&#62; Applying patches to cowsay ---&#62; Configuring cowsay ---&#62; Building cowsay ---&#62; Staging cowsay into destroot ---&#62; Installing cowsay @3.03_1 ---&#62; Activating cowsay @3.03_1 ---&#62; Cleaning cowsay [~]$ cowsay moo _____ &#60; moo &#62; ----- \ ^__^ \ (oo)\_______ (__)\ )\/\ ||----w | || ||</code></pre>