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: 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 | # ]