zlacker

Bro pages: like man pages, but with examples only

submitted by _yfoe+(OP) on 2014-01-25 16:54:45 | 556 points 813 comments
[view article] [source] [go to bottom]

NOTE: showing posts with links only show all posts
319. certai+Wh[view] [source] 2014-01-25 20:58:44
>>_yfoe+(OP)
I use this bash function to achieve something similar using the existing (and much larger) database commandlinefu.com:

    howdoi() { curl "http://www.commandlinefu.com/commands/matching/$(echo "$@" | sed 's/ /-/g')/$(echo -n $@ | base64)/plaintext"; }
◧◩◪◨⬒⬓⬔⧯▣▦▧
528. etjoss+Ey[view] [source] [discussion] 2014-01-26 01:39:45
>>evolve+Vx
Someone else in the thread suggested 'tin', which I love!

"What does 'curl' do?"

"Does what it says on the tin page."

  $ tin curl
  # get the contents of a web page
  curl https://news.ycombinator.com/
[go to top]