From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: To: 9fans@9fans.net Date: Thu, 26 Mar 2009 08:29:54 +0200 From: lucio@proxima.alt.za In-Reply-To: <7644cab877b70498cce32d2d5ddf8bfa@quintile.net> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: Re: [9fans] new toy - gmap Topicbox-Message-UUID: c78d030c-ead4-11e9-9d60-3106f5b1d025 > Pick up the new code, it reads the key from /lib/gmapkey > and gets the longditude and latitude the correct way round > (as several people have told me. I use: lng=`{echo $here(2) | sed -e 's/^-(.*)/+\1/' -e 's/^([0-9])/-\1/'} Because double negatives (--) don't seem to cut it in the URL :-) I imagine there's a better way, but rc programming is not my strong suit. And I can't test now the simplification that drops the \1 from the first term. I got caught by the fact that the space after -e is mandatory (why?) and the first \1 belongs to me trying to figure out what I was doing wrong. ++L