A google search shellscript

This little doey allows you do fire up a google search right from your terminal.

---------------------------------------------------

#!/bin/sh
#(save me into the path as "google")
clear &&
for i in "$@";
do lynx "$@" - Google Search;
done

---------------------------------------------------

(the browser doesn't have to be lynx, it could be netscape, links, or whatever it just has to be able to accept urls from the command line)

you can then search google from the terminal using

google "your search for whatever"

:slight_smile:

That's a great idea - thanks

:smiley:

#!/bin/bash
read do
lynx "$do" - Google Search;

booom
:smiley: :smiley: :smiley: :smiley:

You should probably change the spaces in the search query to "+" and + to "%2B":

lynx "http://www.google.com/search?q=$(echo $@|sed -e 's/+/%2B/g' -e 's/ /+/g')"