> wikipediaSearch() {
> echo -n -e "\n============================================\n\tWelcome
> to WikiPedia Search"; echo ""; i=1 ; for line in $(lynx --dump
> "http://www.google.co.in/search?q=$1+site%3Awikipedia.org" | grep
> http://en.wikipedia.org/wiki | cut -c7-); do echo $i $line;
> lines[$i]=$line ; i=$(($i+1)); done ; echo -n -e
> "\n============================================\n\tPlease select the
> link to open - "; read answer; w3m ${lines[$answer]}
> }
>
Do not use above code, single line got spitted into multiple line..
use the code from download link provided below..
>
> Download from Here -
> https://gist.github.com/raw/866473/32f5c28b7f6c98b8a675abc9793685cede97b96f/gistfile1.eclass
Download it..
--
LUG@IITD - http://lug-iitd.org/Footer