Google shell

Dunno if this was ‘common knowledge’, but I only found out a couple of days ago.
http://www.goosh.org/

A must for all who fancy the keyboard more than mice, tablets or whatever.

:slight_smile: Looks good

This looks like a copyright infringement against the intellectual property of Mr terminal :’(

And it’s completely useless, as you access it with a browser. It would be very cool to have this from the real command line (netcat is your friend if you want to code this the hardcore way).

My version is really commandline powered. Name the script clg (for Command Line Google), make it executable and place it into /usr/local/bin

Then you do

clg some keywords to search for

and to view one of the links:

clg 35 | less

or whatever the number of the link is.

Here it goes:

#!/bin/bash
if test -z "$1" ; then
  echo "usage: $(basename $0) keywords|number"; exit 1
fi
KW=$(echo "$*" | sed -e "s/ /+/g")
NP=$(echo "$1" | sed -e "s/^0-9]//g")
if test -n "$NP" ; then
  if test -r ~/.clg.cache ; then
    URL=$(cat ~/.clg.cache | sed -e "/^ *$1\\./ !d" -e "s/^[0-9]*\\. //")
    if test -n "$URL" ; then
      lynx -dump -nolist "$URL"
    else
      echo "URL #$NP not found" ; cat ~/.clg.cache
    fi
  else
    echo "Cache is empty" ; exit 1
  fi
else
  LANGUAGE=en && lynx -dump "http://www.google.com/search?q=$KW&btnG=Go" \
  | sed -e "1,/^References/ d" -e "/[a-z]*\\.google\\.com/ d" \
  -e "/q=cache:/ d" -e "s/^  *//" > ~/.clg.cache
  cat ~/.clg.cache
fi
exit 0

Have fun!

Haa!! Nice!

But how to search pictures??

vodoo wrote:
> This looks like a copyright infringement against the intellectual
> property of Mr terminal :’(

This coming from someone in the FOSS community is rather quaint.

> And it’s completely useless, as you access it with a browser. It would
> be very cool to have this from the real command line (netcat is your
> friend if you want to code this the hardcore way).
>
> My version is really commandline powered. Name the script clg (for
> Command Line Google), make it executable and place it into
> /usr/local/bin

Sorry, but you’ll need to do a lot better than that feeble bit of bash to
beat goosh imho.
Just because your script can be run from a terminal doesn’t make it better,
quite the reverse in this case I would say.
Why you call accessing from a browser useless is beyond me, as virtually
everything is -or can be- run or accessed via a browser, and it’s the one
application that is almost always running on all desktop PCs.

I’m a big proponent of terminals and CLIs, but everything has its use and
place. Using a browser to look for things that you want to view in a browser
anyway is only logical.

On Sun, 12 Apr 2009 23:20:06 +0000, LittleRedRooster wrote:

> vodoo wrote:
>> This looks like a copyright infringement against the intellectual
>> property of Mr terminal :’(
>
> This coming from someone in the FOSS community is rather quaint.

I think you’ll find that Mr.(?) Vodoo was employing this little thing
called “humour”. :wink:

Jim

> I think you’ll find that Mr.(?) Vodoo was employing this little thing
> called “humour”. :wink:

and employing it very well, i think.


Andy Sipowicz

Can I delete the Internet with this? :sarcastic:

Jim Henderson wrote:
> On Sun, 12 Apr 2009 23:20:06 +0000, LittleRedRooster wrote:
>
>> vodoo wrote:
>>> This looks like a copyright infringement against the intellectual
>>> property of Mr terminal :’(
>> This coming from someone in the FOSS community is rather quaint.
>
> I think you’ll find that Mr.(?) Vodoo was employing this little thing
> called “humour”. :wink:

I thought so, although the ‘funny’ part escapes me. Maybe [s]he should’ve
used another type of smiley, like :stuck_out_tongue_winking_eye:

> Can I delete the Internet with this? :sarcastic:

no, but you can find the end of the internet!

try, at the goosh prompt: s end of the internet


Andy Sipowicz

Yes, I can - just found a program called DTI - with goosh.org of course!


web delete the internet

link:Dierk’s page - Delete the Internet. Take care!

On Mon, 13 Apr 2009 06:34:46 +0000, Andy Sipowicz wrote:

>> I think you’ll find that Mr.(?) Vodoo was employing this little thing
>> called “humour”. :wink:
>
> and employing it very well, i think.

I certainly thought so. :slight_smile:

Jim

On Mon, 13 Apr 2009 08:55:08 +0000, LittleRedRooster wrote:

> Jim Henderson wrote:
>> On Sun, 12 Apr 2009 23:20:06 +0000, LittleRedRooster wrote:
>>
>>> vodoo wrote:
>>>> This looks like a copyright infringement against the intellectual
>>>> property of Mr terminal :’(
>>> This coming from someone in the FOSS community is rather quaint.
>>
>> I think you’ll find that Mr.(?) Vodoo was employing this little thing
>> called “humour”. :wink:
>
> I thought so, although the ‘funny’ part escapes me. Maybe [s]he
> should’ve used another type of smiley, like :stuck_out_tongue_winking_eye:

“Mr terminal” wouldn’t be a real person, that was my hint. :wink:

Jim

interesting.
i wonder what a CLI hater would’ve to say about this :wink:

> i wonder what a CLI hater would’ve to say about this :wink:

hmmmm, who cares?


Andy Sipowicz

Jim Henderson wrote:
> On Mon, 13 Apr 2009 08:55:08 +0000, LittleRedRooster wrote:
>
>> Jim Henderson wrote:
>>> On Sun, 12 Apr 2009 23:20:06 +0000, LittleRedRooster wrote:
>>>
>>>> vodoo wrote:
>>>>> This looks like a copyright infringement against the intellectual
>>>>> property of Mr terminal :’(
>>>> This coming from someone in the FOSS community is rather quaint.
>>> I think you’ll find that Mr.(?) Vodoo was employing this little thing
>>> called “humour”. :wink:
>> I thought so, although the ‘funny’ part escapes me. Maybe [s]he
>> should’ve used another type of smiley, like :stuck_out_tongue_winking_eye:
>
> “Mr terminal” wouldn’t be a real person, that was my hint. :wink:

That’s stating the obvious. I still don’t see how it was “funny” though.

  1. Nothing was copied, as goosh is an original use of command line interaction
    afaik, so no infringement.
  2. “mr. Terminal” took the idea from much older equipment, so it’s not
    “his” copyright anyway.

I’ll shut up now, I’m sure we all have better things to do than discuss what’s
funny and what’s not.

On Mon, 13 Apr 2009 22:27:18 +0000, LittleRedRooster wrote:

> I’ll shut up now, I’m sure we all have better things to do than discuss
> what’s funny and what’s not.

“Funny” is very much in the eye of the beholder. When reading posts, I
find it helps to picture the person posting is smiling or laughing - even
in cases where it’s obvious they’re not.

Jim

now that was funny
u can picture me smiling at this

On Tue, 14 Apr 2009 13:26:02 +0000, vij4yd wrote:

> hendersj;1972563 Wrote:
>> On Mon, 13 Apr 2009 22:27:18 +0000,
>> “Funny” is very much in the eye of the beholder.
>>
>> Jim
> now that was funny
> u can picture me smiling at this

I try my best, sometimes I even achieve what I set out to. :slight_smile:

Jim