-
Download the
typeconvert
gist. -
Make it an executable -
chmod 755 typeconvert
-
Move it into your path -
~/.local/bin/
,/usr/local/bin/
-
You might have to close your terminal and open it again in order to use it
usage: typeconvert [-h] [--bin BIN] [--oct OCT] [--dec DEC] [--hex HEX] [--no-space]
A supertiny utility program written in python3 to convert numbers between different bases
options: -h, --help show this help message and exit --bin BIN number in binary --oct OCT number in octal --dec DEC number in decimal --hex HEX number in hexadecimal --no-space disable spaces in output
examples:
./typeconvert --bin 111 --oct 1231 --dec 10 --hex 0xF23