Add small number tools

This commit is contained in:
Jan Philipp Timme 2019-08-01 15:20:50 +02:00
parent fdc8093f87
commit d79509759d
2 changed files with 4 additions and 0 deletions

2
bin/dec2hex Executable file
View File

@ -0,0 +1,2 @@
#!/bin/bash
printf '%x\n' $1 | tr '[:lower:]' '[:upper:]'

2
bin/hex2dec Executable file
View File

@ -0,0 +1,2 @@
#!/bin/bash
echo $((16#$1))