Skip to content

Instantly share code, notes, and snippets.

@JasonSanford
Forked from oeon/bulk-shp2pgsql
Created March 18, 2011 17:16
Show Gist options
  • Save JasonSanford/876458 to your computer and use it in GitHub Desktop.
Save JasonSanford/876458 to your computer and use it in GitHub Desktop.
#!/bin/bash
FILES=$(ls *.shp | sed 's/\..\{3\}$//');
for FILE in $FILES
do
shp2pgsql -s 4326 -I -k ${FILE} gis.${FILE} | psql -d HSIP
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment