Skip to content

Instantly share code, notes, and snippets.

@kaleb
Created June 21, 2012 15:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kaleb/2966271 to your computer and use it in GitHub Desktop.
Save kaleb/2966271 to your computer and use it in GitHub Desktop.
Extract attributes from census.gov TIGER/Line .shp.xml shape metadata files
#!/bin/sh
# REQUIRES: xmlstarlet <http://xmlstar.sourceforge.net/>
xmlstarlet sel -t -v //attr $1
# Where $1 is a *.shp.xml file as downloaded from <http://www.census.gov/cgi-bin/geo/shapefiles2011/main>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment