Re: [GRASS-user] batch import/sql shapefiles

2008-05-13 Thread Nikos Alexandris
On Tue, 2008-05-13 at 15:52 +0800, maning sambale wrote: Hi, This simple script doesn't seem to work on my cygwin bash for i in *.shp; do ogr2ogr -f ESRI Shapefile -where ELEVATION10 $i_elev $i; done I'm trying to extract elevation contour lines from a couple of shapefiles I

Re: [GRASS-user] batch import/sql shapefiles

2008-05-13 Thread maning sambale
Both didn't worked. $i_elev -- ${i}_elev $i\_elev instead of $i_elev. -- |-|--| | __.-._ |Ohhh. Great warrior. Wars not make one great. -Yoda | | '-._7' |Freedom is still the most radical idea of all -N.Branden| | /'.-c

Re: [GRASS-user] batch import/sql shapefiles

2008-05-13 Thread Wolf Bergenheim
On 13.05.2008 10:52, maning sambale wrote: Hi, This simple script doesn't seem to work on my cygwin bash for i in *.shp; do ogr2ogr -f ESRI Shapefile -where ELEVATION10 $i_elev $i; done You have two errors: 1) (as Hamish pointed out) $i_elev is a legal variable name so you want