#!/bin/csh -f # maps # ----------------------------------------------------------------------------- # Shell script to show a Google Map of the specified address, business, # person etc. Can also specify multiples such items separated by "to" # to see the route from one to the other. # ----------------------------------------------------------------------------- set browser = "open" # If $1 is a script in the browsers folder, use it as the browser. if ($#argv > 0 && -x "$0:h/browsers/$1") then set browser = $1:q shift endif if ($#argv == 0) then echo $browser http://maps.google.com $browser http://maps.google.com else echo $browser "http://maps.google.com/maps?q=$1:q+$2:q+$3:q+$4:q+$5:q+$6:q+$7:q+$8:q+$9:q+$10:q+$11:q+$12:q+$13:q+$14:q+$15:q+$16:q+$17:q+$18:q+$19:q+$20:q" $browser "http://maps.google.com/maps?q=$1:q+$2:q+$3:q+$4:q+$5:q+$6:q+$7:q+$8:q+$9:q+$10:q+$11:q+$12:q+$13:q+$14:q+$15:q+$16:q+$17:q+$18:q+$19:q+$20:q" endif