in C ++ using printf I want to print a sequence of numbers, so I get from the "for" loop,
1
2
...
9
10
11
and I create files from these numbers. But when I list them using "ls", I get
10
11
1
2
..
so instead of trying to solve the problem with bash, I wonder how I could print;
0001
0002
...
0009
0010
0011
etc.
thank
source
share