Created
June 28, 2015 03:00
-
-
Save albert-decatur/e56a64c998870518cadb to your computer and use it in GitHub Desktop.
eg, find . -type f | parallel ./iati_loc.sh
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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