Skip to content

Instantly share code, notes, and snippets.

@albert-decatur
Created June 28, 2015 03:00
Show Gist options
  • Save albert-decatur/e56a64c998870518cadb to your computer and use it in GitHub Desktop.
Save albert-decatur/e56a64c998870518cadb to your computer and use it in GitHub Desktop.
eg, find . -type f | parallel ./iati_loc.sh
# get pipe separated info on IATI XML locations
xmlstarlet sel -t -m "iati-activities/iati-activity/location/coordinates" -v "concat(../../title,'|',../../description,'|',../../iati-identifier,'|',../../other-identifier,'|',../../participating-org,'|',../../recipient-country,'|',../../sector,'|',../../transaction/value,'|',../../transaction/flow-type,'|',../../transaction/transaction-date,'|',../../transaction/transaction-type,'|',@latitude,'|',@longitude,'|',@precision)" -n $1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment