c2b is an easy to use shell application for quick and easy number base converter
To build c2b
it's easy. There is 2 way of doing it.
./build.sh
It will juste generate the c2b
executable.
make install
It will install c2b
in your /usr/local/bin
folder.
To use c2b
it's easy !
c2b [OPTIONS] NUMBER
There is several options you can have access :
-h
,--help
: Print the help message-b BASE
: Specify the base of the output number (default : 2)-B, --input-base BASE
: Specify the base of the input number (default : 10)
c2b 13
1101
c2b -b 16 "154"
9A
c2b -b 10 -B 16 "9A"
154
Note that the quotes are not necessary.
- Being able to convert bigger numbers than
long long int
I love working on this project. If you have any suggestion about new fonctionnalities dont hesitate !