Skip to content

Instantly share code, notes, and snippets.

@tdl
Created May 25, 2012 13:33
Show Gist options
  • Save tdl/2788196 to your computer and use it in GitHub Desktop.
Save tdl/2788196 to your computer and use it in GitHub Desktop.
Base64-decode a dir of soap XMLs containing the data in <in1></in1> tags
for f in *.xml; do grep "<in1>" $f | cut -d">" -f2- | cut -d"<" -f1 | base64 -d | iconv -f UTF-16LE -t UTF-8 > decoded-$f ; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment