📜  变量替换 bash 零填充 - 无论代码示例

📅  最后修改于: 2022-03-11 14:58:40.193000             🧑  作者: Mango

代码示例2
for num in {1..5}
do
   value=$(printf "%02d" $num)
   ... Use $value for your purposes
done