linux shell 如何让数字按要求位数显示?如0显示为000001

版权声明:belongs to tony2278 https://blog.csdn.net/tony2278/article/details/89953434

for((i=1;i<20;i++))
do
s3=$((1000000+$i))
echo ${s3:1}

read -p "Press any key to continue." var    #let shell停止在屏幕

 

猜你喜欢

转载自blog.csdn.net/tony2278/article/details/89953434