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

Click here to return to the 'Search sites via Google and Terminal' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Search sites via Google and Terminal
Authored by: pwharff on Jun 06, '07 01:03:39PM
It's also much easier if you provide an argument to the script, so that you can perform this much faster and easier (especially if you put this script in one of your PATH's).


if [ $# = 0 ]
  echo " "
  echo "Please provide search string. Usage: $0 [string]"
  echo " "
  F=`echo $@ | sed 's/ /+/g' | sed 's/"/%22/g'`
  open "$F"

[ Reply to This | # ]