by mshook · 7y ago · 0 comments
So instead of scripting, he could have generated a sorted list of numbers from the files he had. Created a file with the sequence of numbers for the range and diffed/commed the whole thing. Voilà...
$ seq -w 0001 0003
0001
0002
0003
$ $ seq -w 98 102
098
099
100
101
102 seq -f %04g 0 3
echo {0000..0003} # if bash