perl - Code that finds missing files in a series -


I am looking for a line of code that identifies and exports missing files in a series of files That's a txt file. For example: 1to100000 is a directory named 1,2 ... 99999,100000 but there is something missing from the series. I would like to report scripts to those missing files in a txt file. Ideally this would be an executable pearl script Thanks, Jake

Just trust from 1 to 100000 and See whether the file exists or not.

foreach My $ num (1 .. 100000) {my $ fname = "1to100000 / $ num.pdf"; Print "$ fname missing \ n" unless that -f $ fname; }

Comments