1. install elinks
  2. put the following in your .bashrc

function google { /usr/bin/links g:"$1 $2 $3 $4 $5 $6 $7 $8"; }

  1. use/examples:

$ google 2*4 $ google 1 dollar in euros $ google translate aller $ google weather

  1. I cannot believe I have created the best way to do this?

asked 11 May '10, 01:43

joe's gravatar image

joe
1112
accept rate: 0%

edited 11 May '10, 18:58

tuxdev's gravatar image

tuxdev
12

Please accept an answer, or provide more details on what you're looking for.

(14 Jun '11, 11:44) rfelsburg ♦



You can shorten your function and catch more than 8 options with.

function google { /usr/bin/links g:"$*"; }

You might also be interested in http://goosh.org/

link

answered 11 May '10, 02:46

Nathan's gravatar image

Nathan
761
accept rate: 100%

function google { /usr/bin/links g:"$*"; }

Wont limit you to 8 arguments

"$*" is the same as "$1 $2 $3 ... $N" where N is the total number of arguments

link

answered 11 May '10, 02:47

olejorgenb's gravatar image

olejorgenb
614
accept rate: 33%

For those who enjoy using a terminal within a desktop environment and use the firefox:

function google { firefox -search "$*"; }

Thx for the inspiration!

link

answered 11 May '10, 07:18

MaikB's gravatar image

MaikB
212
accept rate: 0%

Thanks.It is useful. Can it be done in new-tab? I mean 'firefox -search' is always opening new window.I want it to open search results in new-tab. I've tried 'firefox -new-tab -search <term>' but it doesn't work.

(12 May '10, 05:30) maszynista

Nathan.

I agree, the google command line from a browser is hot:

http://goosh.org/

Thanks

link

answered 18 May '10, 16:51

joe%201's gravatar image

joe 1
212
accept rate: 0%

sudo apt-get install elinks

function google { /usr/bin/elinks g:"$*"; }

for me (Ubuntu 10.04) i need to point to elinks not links. really cool though, thanks!!!

link

answered 11 May '10, 03:43

jeff%20mcd's gravatar image

jeff mcd
1
accept rate: 0%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×16
×4
×3
×2

Asked: 11 May '10, 01:43

Seen: 4,147 times

Last updated: 14 Jun '11, 11:44

powered by OSQA