Search Wikipedia from the command line.

8/05/2009 , 0 Comments

Command-Line Fu website explain how to query Wikipedia using the good old built in “Dig” command.

Generally dig command is used to look up DNS records that also can text record.


Some have created an script that can query the Wikipedia summary for an article querying the records from the command line.


dig +short txt <keyword>

Some examples

dig +short txt
dig +short txt

You the idea right.
More syntax and usage can be found on commandlinefu.