bc


Convert octal to hexa

echo “obase=16; ibase=8; octal-number-here” | bc

convert base 8 (octal) number 17 to hexadecimal

echo “obase=16; ibase=8; 17” | bc

> F


Hex to decimal

echo “ibase=4; obase=10; 3C” | bc

> 33