Skip to content

Instantly share code, notes, and snippets.

@philippgeisler
Created September 23, 2016 14:53
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 philippgeisler/84c29c7237216a6aea84efee67ac9242 to your computer and use it in GitHub Desktop.
Save philippgeisler/84c29c7237216a6aea84efee67ac9242 to your computer and use it in GitHub Desktop.
example for use of xmlstarlet with MEDS/MODS metadata
ls -f ./*/*.xml | xargs -I {} xml sel -T -t -m "//mets:structMap/mets:div[@ADMID='AMD']" -v "@LABEL" -n {} | sort | uniq -c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment