Convert Bases in Bash to Work With Octals and Hexadecimals