Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- for FILE in *.geojson # cycles through all files in directory (case-sensitive!)
- do
- echo "converting file: $FILE..."
- FILENEW=`echo $FILE | sed "s/.mif/_new.shp/"` # replaces old filename
- ogr2ogr \
- -f "ESRI Shapefile" \
- "$FILENEW" "$FILE"
- done
- exit
Add Comment
Please, Sign In to add comment