5 lines
242 B
Bash
5 lines
242 B
Bash
|
#!/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
|