Topic: quick wiki lookup in terminal
Another gem from commandlinefu.com, via this page. Add this line to your .bash_aliases:
wiki() { dig +short txt $1.wp.dg.cx; } and type 'wiki keyword' to get a quick paragraph from wikipedia in your terminal. ![]()
(I had 'dig' already installed on #!9.04, I haven't checked for Statler.)
edit This version lets you input multiple-word phrases without having to put them in quotes:
wiki() { dig +short txt "$*".wp.dg.cx; }Last edited by johnraff (2010-06-04 18:12:21)
------------------------
( a boring Japan blog , and idle twitterings )
“Good morning sir, which way up would you like your reality today?” "As it comes, Jeeves, as it comes..."