The Artima Developer Community
Sponsored Link

Java Buzz Forum
Command Line Google

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Brian McCallister

Posts: 1282
Nickname: frums
Registered: Sep, 2003

Brian McCallister is JustaProgrammer who thinks too much.
Command Line Google Posted: Oct 6, 2004 4:09 PM
Reply to this message Reply

This post originated from an RSS feed registered with Java Buzz by Brian McCallister.
Original Post: Command Line Google
Feed Title: Waste of Time
Feed URL: http://kasparov.skife.org/blog/index.rss
Feed Description: A simple waste of time and weblog experiment
Latest Java Buzz Posts
Latest Java Buzz Posts by Brian McCallister
Latest Posts From Waste of Time

Advertisement

Saw a pointer to Ruby/Google in PickAxe 2 so had to play around some =)

[mccallister@kite ~]$ google --max 1 -t -H "Best Programming Language"
url: http://www.ruby-lang.org/
title: Ruby Home Page
[mccallister@kite ~]$

Command line google! Requires Ruby 1.8.1 and the aforementioned Ruby/Google library. Have fun!

Usage: google [options] query-string

  Options:
    -i, --start NUMBER               Start index for results
    -m, --max NUMBER                 Max number of results to show
    -f, --[no-]filter                Activates or deactivates automatic results filtering
    -r, --restrict VALUE             Restricts the search
    -a, --[no-]safe                  Enable or disable (default disabled) filtering of adult content
    -H, --header                     Print field header on ouput (default disabled)
    -s, --snippet                    Display result snippet in output
    -t, --title                      Display result title in output
    -u, --[no-]url                   Show or hide result url in output

    -h, --help                       Show this message

Read: Command Line Google

Topic: Retro GUI Programming - Java Windowing API for Terminals Previous Topic   Next Topic Topic: java.util.concurrent API backported to Java 1.4

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use