I want to do search through a bunch of directories to find missing files. The format of the directories and files is YYYY/MM/file_name_YYYYMMDD.csv. So what I want to do is something like:
for date in `list_of_dates.txt` do if [! -f /YYYY/MM/file_name_YYYYMMDD.csv] echo $date fi
What I can't figure out how to do is make each iteration look for the right file in the right directory. Is there a way to do this in a bash script?