shell 进制转换

 

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

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

$ echo $((8#11))
9

 

posted @ 2018-10-31 01:10  anobscureretreat  阅读(144)  评论(0编辑  收藏  举报