bash-utils/h2a

11 lines
124 B
Plaintext
Raw Normal View History

#!/bin/bash
for c in $@; do
if [[ $c != 0x* ]]; then
c="0x$c"
fi
echo $c | xxd -r
echo -n " "
done
printf "\n"