Unix & Linux: How do I convert a string into a number interpreted in certain base in bash script?

Published --