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: rwmitchell on Jun 06, '07 07:56:59AM
I changed the code to:

#!/bin/sh

read F1
F=`echo $F1 | sed 's/ /+/g' | sed 's/"/%22/g'`

open "http://google.com/search?q=$F"
and that seemed to handle the quoting problem mentioned in the original hit.

[ Reply to This | # ]