advertisement

Article:
  Scripting Mac OS X
Subject:   Google via Terminal (user input problem)
Date:   2007-05-21 09:27:50
From:   jamesreynolds
Response to: Google via Terminal (user input problem)

Paymon,
Cool idea. Try this:


#!/bin/sh


read F1
F1=`echo $F1 | sed s/\ /%20/`


open "http://google.com/search?q=site:wikipedia.org%20$F1"