我正在尝试使用 0 填充生成大量序列号
for example:
00000000
00000001
00000002
.
.
99999997
99999998
99999999
我正在尝试类似的东西:
for i in $(seq 00000000 99999999);do echo ${i} >> filelist.txt;done
这有两个问题。
1: the range is too big and the system cant handle it
2: the numbers arent padded so I end up with something like this:
1
2
3
.
.
998
999
1000
任何帮助将不胜感激..