Wednesday, September 2, 2009

Using the command line for looking up wikipedia entriesLi

Lifehacker had a tip of how to look up an entry in Wikipedia using the command line. It uses the dig command line, and the syntax is as follows:

     dig +short txt .wp.dg.cx

Just replace with what you want to look up. That will give you the Wikipedia summary back. Quite cool.