extract base64-binary from xml

master
zeus 2020-07-16 14:28:49 +02:00
parent 16e609a7e3
commit b38a1e3540
1 changed files with 3 additions and 0 deletions

View File

@ -5,3 +5,6 @@ export PKG=vim; for i in $(dpkg -L PKG) ; do if [[ -f "$i" ]] && [[ ! -L "$i" ]]
# find all links in the fs, that link to a specific target:
find / -type l -exec readlink -nf {} ';' -exec echo " -> {}" ';' | grep "/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