extract base64-binary from xml
This commit is contained in:
parent
16e609a7e3
commit
b38a1e3540
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user