script to check for missing numbers in sequential file names

  • Thread starter Thread starter JimLS
  • Start date Start date
J

JimLS

I have a number of files with names like xyz00001.txt, xyz00002.txt, etc. I would like to check that there are no breaks in the sequential numbers. Sequence should always start with 00001. Looking for how to implement that in a bash script and would like to have error message and the location of the break in sequence (if there is a break). Message with total number of files in sequence would be a plus.

Continue reading...
 
Back
Top