I have been given several hundred directories with millions of files in each of them. E.g.
DirA
+----+ A_000001.txt
|
+ A_000002.txt
|
+ ... etc..
I want to ensure that the files exists for every number from 000001 until 999999.
So if the file A_678123.txt
is missing, the tool should report that. Currently I am creating a bit array & then it takes a ls
output and sets a 1 for every bit position that corresponds to the parsed file number.
Is there a tool (or a combination of tools) that can replace my hacky python script ?