shell 进制转换

八进制的11 转换为十进制的9

$ echo "obase=10;ibase=8;11" | bc -l
9

$ echo $((8#11))
9
原文地址:https://www.cnblogs.com/sea-stream/p/9880542.html