Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Define words via Google and Bash!' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Define words via Google and Bash!
Authored by: TwoTimes on Feb 16, '05 01:49:28PM
Or, for those who want to launch it from the terminal, this is the script, to be saved as /usr/local/bin/googledefine:

#!/bin/bash
if [ ! $1 ]; then
   echo "Usage: googledefine word"
   echo
   exit
fi
open "http://www.google.com/search?q=define:"$1


[ Reply to This | # ]
Define words via Google and Bash!
Authored by: gwolosh on Feb 20, '05 11:14:48AM

If you're gonna launch it from the terminal, why not keep it in the terminal. Get lynx from somewhere, fink, darwinports, etc and your script becomes

#!/bin/bash
if [ ! $1 ]; then
echo "Usage: lookup <word>"
echo
exit
fi
/sw/bin/lynx -dump "http://www.google.com/search?q=define:$1" | more

(I changed the name of the script to lookup)

Gedaliah



[ Reply to This | # ]