echo “obase=16; ibase=8; octal-number-here” | bc
echo “obase=16; ibase=8; 17” | bc
echo “ibase=4; obase=10; 3C” | bc