Google Search Straight From the Command Line!

Published on April 18, 2008 in Apps, General by Rami Taibah

Google Linux

Sebastian Bilbeau authored a script that enables you to Google straight from the comfort of your command line interface! How sweet is that? The script will give you the links of the first 11 result in Google, nothing more nothing less. Meaning don’t expect it to give you titles and description, very rudimentary stuff I must say, but still it is kinda neat. Cheers Sebi!

You only need to do two simple things, first of all you will need to install the command line browser lynx:

sudo apt-get install lynx

You will then need to download a script authored by

wget http://public.tux-planet.fr/shell/script-google

Change permissions and rename:

chmod +x google.sh && mv google.sh google

Now here is where the fun starts, execution!

rami@rami-desktop:~/Desktop$ ./google Royal HeHe2-ness

http://dd0s.jaiku.com/presence/32174627

http://linuxologist.com/

http://linuxologist.com/linux-general/etymology-of-a-linux-distro/

http://linuxologist.com/linux-general/the-7-habits-of-highly-effective-linux-u

http://linuxologist.com/linuxhumor/howto-convert-a-friend-to-linux/

Now only if I could figure out the practicality of this? Any ideas guys? :)

About

Rami Taibah the founder of The Linuxologist and a self proclaimed geek and Linux aficionado. This fall, he will be pursuing an MIMS degree at UC Berkeley, California. You can follow him on Twitter @rtaibah.

«

»

  • Mynameistux

    sweet

  • http://www.matusiak.eu/numerodix/blog/ numerodix

    That’s cool, but what are you gonna do with those urls in your terminal? :)

  • http://hehe2.net Rami Taibah

    @numerodix, Actually nothing much so far I just used it to check how my blog ranks against some keywords. thats about it. Hey but maybe it just contributes to the “geek factor” ;)

  • http://www.topstumbles.com/story/795 Top Stumbles – Best of StumbleUpon

    Google Search Straight From the Command Line! | Royal HeHe2-ness!…

    Sebastian Bilbeau authored a script that enables you to Google straight from the comfort of your command line interface! How sweet is that?…

  • http://www.pliggs.com Geoserv
  • http://www.tux-planet.fr//blog/ sebastien Bilbeau

    I’am the author of this script and I have change that name.
    The new link is :
    http://public.tux-planet.fr/shell/script-google

    Sorry.

  • http://housebaked.zzl.org/ Debian User

    This is a neat script, can do with some improvements probably but it’s fair.

    However easier would be to use Lynx and search Google and then you can even use the URL’s huh?

  • Keith P.

    Actually very useful. I’m putting together a technical library of datasheets for new products I’m going to be working with (I’m a computer hardware debug technician.) I have 322 parts to find a datasheet for. I wrote a script that calls Sebastien’s script and redirect the top 3 results into an html file. Downloading and organizing all those files is still very time consuming, but’s it’s a heck of a lot faster when I don’t have to manually type every Manufacturers Name and Part Number into Google myself.

  • http://hehe2.net Rami Taibah

    @Keith P. Wow that’s great!! I always new there is something useful out of this script…thanks for sharing.

  • http://2b46c1fb700a.us 2b46c1fb700a

    2b46c1fb700a…

    2b46c1fb700a97f90b4c…

  • http://hehe2.net/internet/goosh-bringing-the-command-line-to-your-google/ Goosh: Bringing The Command Line To Your Google | Bringing Linux to the Masses

    [...] a previous blog of mine, I have explained how you can Google straight from the comfort of your command line. Well now, why don’t we do the opposite? Bring the command line to Google? Well, my friend [...]

  • http://hehe2.net/linux-general/gnoosh-bringing-the-command-line-to-google/ Gnoosh: Bringing the Command Line to Google | Bringing Linux to the Masses

    [...] a previous blog of mine, I have explained how you can Google straight from the comfort of your command line. Well now, why don’t we do the opposite? Bring the command line to Google? Well, my friend [...]