bc – An arbitrary precision calculator language

Here is how to use bc to convert from one base to another.

bc -l

ibase=2;obase=A;1010001

81

Here the obase = A is in hex for 10.