Search from the Linux command line

On September 6, 2009, in command, Google, search, terminal, by Dipin Krishna

You can search from the Linux command line without using a command line web browser like lynx or Elinks.

All u need is the curl and html2text packages installed. Then issue the following command:

curl -A Mozilla |html2text -width 60

where you can replace Dipin Krishna with another keyword of your choice. The results will be displayed in your console application with a width of 60.

Few other examples:

curl -A Mozilla  |html2text -width 80
curl -A Mozilla |html2text -width 100

Leave a Reply