Skip to content

Instantly share code, notes, and snippets.

@danielcompton
Created March 14, 2012 00:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save danielcompton/2033011 to your computer and use it in GitHub Desktop.
Save danielcompton/2033011 to your computer and use it in GitHub Desktop.
Shell script to convert hex encoded XML to cleanly formatted XML
#! /bin/sh
xxd -revert -plain $1 > /tmp/hexmltemp.xml
xmllint --format /tmp/hexmltemp.xml > $1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment