Wednesday, 14 October 2009

Search Google.com from the Linux command line

You can search Google.com from the Linux command line without using a CLI web browser like lynx or Elinks. All you need is the curl and html2text packages installed. Then you issue the following command:

curl -A Mozilla http://www.google.com/search?q=pasivemanagement |html2text -width 80

where you can replace "pasivemanagement" with another keyword of your choice. The results will be displayed in your console application with a width of 80.
And the result will look like this:



Personally I like this one, I can do searches directly from Linux server command line, so you do not need even GUI.

Inspired By tips4linux.com.

No comments:

Post a Comment