Add small number tools
This commit is contained in:
parent
fdc8093f87
commit
d79509759d
2
bin/dec2hex
Executable file
2
bin/dec2hex
Executable file
@ -0,0 +1,2 @@
|
||||
#!/bin/bash
|
||||
printf '%x\n' $1 | tr '[:lower:]' '[:upper:]'
|
2
bin/hex2dec
Executable file
2
bin/hex2dec
Executable file
@ -0,0 +1,2 @@
|
||||
#!/bin/bash
|
||||
echo $((16#$1))
|
Loading…
x
Reference in New Issue
Block a user