Skip to content

Instantly share code, notes, and snippets.

@sgsfak
Created February 1, 2023 22:32
Show Gist options
  • Save sgsfak/a3f70c91b403fb1c928f10b768bc9d68 to your computer and use it in GitHub Desktop.
Save sgsfak/a3f70c91b403fb1c928f10b768bc9d68 to your computer and use it in GitHub Desktop.
#!/bin/bash
dcm2xml $1 |
xmlstarlet sel -T -t -m 'file-format/data-set/element[@tag != "7fe0,0010"]' \
-v 'concat(./@tag, " ", ./@name, " ", normalize-space(.))' -n
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment