Linux Today: Linux News On Internet Time.

Bash Script To Access Wikipedia

Oct 22, 2008, 10:31 (0 Talkback[s])
(Other stories by Mike Tremell)

[ Thanks to Mike Golvach for this link. ]

"This script gets its content from Wikipedia.com and accepts a variable number of arguments. The only real caveat, when executing the program, would be to be sure to put any query with "special" characters in double quotes (like apostrophes, etc). Also, you'll note that this script includes a "pager" variable (which we've set to /usr/bin/more) since the output you get back will most definitely be looooooong. You can edit that variable to set it to your favorite pager very simply"

Complete Story

Related Stories: