[postgis-devel] 1.1.0 closed - Release on 21 - call for tests

Michael Fuhr mike at fuhr.org
Mon Dec 19 17:11:59 PST 2005


On Mon, Dec 19, 2005 at 10:10:41PM +0100, strk at refractions.net wrote:
> Mmm... this means the sed line acts differently on Solaris
> then on Linux and MingW, acc!
> Can you find a way for this ?
> 
> 	sed 's/[eE]\([+-]\)0\+\([0-9]\+\)/e\1\2/g' 
> 
> (basically normalizing scientific notation so to collapse leading zeroes
> and lowercase the E).

This works on FreeBSD 6.0, Solaris 9, and an old Linux box I have
access to:

sed 's/[eE]\([+-]\)0\{1,\}\([0-9]\{1,\}\)/e\1\2/g'

-- 
Michael Fuhr



More information about the postgis-devel mailing list