diff --git a/bin/dec2hex b/bin/dec2hex new file mode 100755 index 0000000..47de1cb --- /dev/null +++ b/bin/dec2hex @@ -0,0 +1,2 @@ +#!/bin/bash +printf '%x\n' $1 | tr '[:lower:]' '[:upper:]' diff --git a/bin/hex2dec b/bin/hex2dec new file mode 100755 index 0000000..4910440 --- /dev/null +++ b/bin/hex2dec @@ -0,0 +1,2 @@ +#!/bin/bash +echo $((16#$1))