You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

8 lines
316 B
Bash

#!/bin/bash
FILE="$1"
cat "$FILE" | grep "<data" | cut -d'>' -f 2 | cut -d '<' -f 1 | tr -cd '0123456789abcdefABCDEF' | xxd -r -p /dev/stdin "$FILE.bin"
#needs package xmlstarlet
#####xmlstarlet sel -t -v "//TPL/perso/perso_content/content_E2P" $FILE | tr -dc '0123456789abcdef' # | xxd -r -p /dev/stdin $FILE.bin