Skip to content

Comment on Show HN: Wiki – Command-line tool to fetch summaries from Wikipediaparent

Comments

Yes, it's about 250 lines, and if you have links installed you could do something like this instead:

  bashwiki() {
   links -dump "https://en.wikipedia.org/wiki/$@" | head -n 60
  }
And call it with `$ bashwiki golang` and you get the summary (and some of the other text). My guess is that someone a little more familiar with bash could strip the extra output and make it a bit nicer though.

As they say "to each his own" :)

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.