linux - How to find missing files(dates) among thousands of files in a folder? -


There are several daily files for the years 2003-2009, the total number of files is 2546, hence the dates (files) are missing . I know that which DAT is missing, I do not want to see any other file. The files have been named like this:

  dat_20030129_gf.img # Then change from date to second  

Any command in Linux to do this Please enter

Just at the date range, and check whether the file exists for every date. Print the warning if the file is unavailable Ruby is an example:

  #! / Usr / bin / env ruby ​​is required 'date' date = date PRSE ('2003-01-01') Final = Date 2010-01-01 ') while the date & lt; Last file name = date.strftime ("dat_% Y% m% d_gf.img") "filing" # (filename) date + = 1 end  

Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -