shell script padding zeros code example Example: bash zero padding for i in $(seq -f "%05g" 10 15) do echo $i done