re-structured

This commit is contained in:
2021-01-24 15:48:33 +01:00
parent f15a95255f
commit e2466ddc8f
8 changed files with 26 additions and 20 deletions

View File

@@ -0,0 +1,4 @@
#!/bin/bash
# extract base64-coded binary within a given tag in an xml (1st match)
cat file.xml | sed -n -e 's/.*<ns5\:Daten\ xmime\:contentType\=\"application\/pdf\">\(.*\)<\/ns5:Daten>.*/\1/p' | base64 -d > output_file && file output_file