Results 1 to 6 of 6

Thread: Terminal with "Search in Google" support

  1. #1
    Join Date
    Nov 2008
    Beans
    1

    Exclamation Terminal with "Search in Google" support

    Hi,

    I have a question about terminal. I can search any selected thing at terminal in Google while using MacOSx terminal. Is there any support like this while using Ubuntu? If not, any plan to add this support to ubuntu ?

  2. #2
    Join Date
    Apr 2006
    Location
    Dallas, TX
    Beans
    1,359
    Distro
    Ubuntu 22.04 Jammy Jellyfish

    Re: Terminal with "Search in Google" support

    I don't know of any built-in way to do this. It can be done with a pretty simple shell-script, though:

    Code:
    #!/bin/bash
    baseurl="http://www.google.com/search?q="
    query="$@"
    url=$baseurl$query
    /usr/bin/firefox $url &
    Just save this file as "google" (no extension), somewhere in your PATH and make it executable (chmod +x google). Now you can open a terminal and type:
    Code:
    google search+terms
    Note: Use a plus (+) sign between search terms instead of a space. I'm sure someone who knows bash scripting above my novice level could automatically convert spaces to a plus sign.

    This might be more effort than you're willing to put into getting search functionality in the terminal, but figured I'd at least throw that out there...

  3. #3
    Join Date
    Jun 2009
    Location
    new York
    Beans
    461
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Terminal with "Search in Google" support

    uuse lynx web browser. just type lynx in terminal, after you "sudo apt-get install lynx"
    :wq

  4. #4
    Join Date
    Jan 2009
    Location
    Toronto, Canada
    Beans
    214
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Terminal with "Search in Google" support

    Quote Originally Posted by msaitozen View Post
    Hi,

    I have a question about terminal. I can search any selected thing at terminal in Google while using MacOSx terminal. Is there any support like this while using Ubuntu? If not, any plan to add this support to ubuntu ?
    Try "googlizer". It's in the repos. Once installed, you can create a custom launcher on one of the desktop panels. Select any word or sentence in any application, click on the Gogoglizer icon, and your Google search hits will be displayed in your default browser.

  5. #5
    Join Date
    May 2011
    Beans
    14

    Re: Terminal with "Search in Google" support


  6. #6
    Join Date
    Jan 2008
    Location
    Manchester UK
    Beans
    13,573
    Distro
    Ubuntu

    Re: Terminal with "Search in Google" support


Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •