Google search from Linux and UNIX command line - Comment Page: 1

Today I started thinking that how cool is do some Google searches straight from command line. First I try to find some ready tricks from the Internet, but I couldn't find quickly anything good. So I decide do a simple Bash function that can take Google search as parameter and open Firefox Browser (tab) with Google search. Sounds easy... :) First we need Google search URL without search parameter and it looks like this: Next is good to do some tests with Firefox, URL and search words from command line: firefox Works as it should work firefox more words Not...

11 comments on “Google search from Linux and UNIX command line - Comment Page: 1

  1. Hi Sindhu,

    I tested a bit this function on ZSH shell and the problem seems to be that, how to ZSH shell handles special characters, such as question mark (?) and ampersand (&). This is easy to fix, simply use backslash (\) before question mark (?) and create function like following:

    function google() { firefox\?hl=en#q="`encode [email protected]`" ;}

    Did you get it to work? :)

  2. Wow! Worked like a charm.

    Did have to modiry command firefox with firefox --no-remote -P though!

    Loved it! Thanks! :)

  3. Thanks a lot for this information. Would you please show how to search or ixquick from the command line. Again, thanks for the info.

Leave a Reply

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