PDA

View Full Version : [ubuntu] Terminal with "Search in Google" support



msaitozen
October 5th, 2009, 03:16 PM
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 ? :confused:

kanikilu
October 5th, 2009, 06:48 PM
I don't know of any built-in way to do this. It can be done with a pretty simple shell-script, though:


#!/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:

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...

c0mput3r_n3rD
October 5th, 2009, 09:28 PM
uuse lynx web browser. just type lynx in terminal, after you "sudo apt-get install lynx"

luigi_mb
October 6th, 2009, 12:20 AM
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 ? :confused:

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.

umpirsky
September 5th, 2012, 10:18 AM
http://blog.ubuntu-tweak.com/2010/11/16/gnome-terminal-with-google-search-support.html

nothingspecial
September 5th, 2012, 10:24 AM
http://img845.imageshack.us/img845/6976/necro2.png