Decodificador de hexadecimal escapado
This commit is contained in:
parent
4d65f55bb0
commit
8a42c59beb
1 changed files with 18 additions and 0 deletions
18
scripts/hex2text
Executable file
18
scripts/hex2text
Executable file
|
@ -0,0 +1,18 @@
|
|||
#!/bin/bash
|
||||
|
||||
|
||||
if [[ -z $1 ]] ; then
|
||||
echo "usage: $0 <string>"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
STR=$1
|
||||
|
||||
sed 's/\\x/:/g' <<< $STR \
|
||||
| tr ':' "\n" \
|
||||
| while read B ; do
|
||||
#echo $B
|
||||
[[ -n $B ]] && printf "\x$B"
|
||||
done
|
||||
echo
|
||||
|
Loading…
Reference in a new issue