Skip to content
Blog Search from the Linux command line

Search from the Linux command line

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

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.