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.

Text Wizardry : Ten Commands

4 pointsby gurgeousalmost 17 years ago

1 comment

silentbicyclealmost 17 years ago
<p><pre><code> for a in `ls -1 /usr/bin/`; do whatis "$a"; done | less </code></pre> That prints out a list of every command in /usr/bin with a one-line description.<p>sed (transforming pipe with regular expressions) and file (try to identify a file type based on headers and other metadata) are also quite handy.<p>If you find the post interesting, check out Kernighan &#38; Pike's _The Practice of Programming_.