I have a directory that contain logs for each day. Each directory is formated with this name pattern 2012_07_01
, 2012_07_02
.
What I want is to check from a given $startdate
and a $enddate
, and see if between any of that time from the start and enddate variables exists empty folders on the return list of the search. If that is the case then I remove the empty folders from my list of returned values.
AS for the ones that have files inside them I want to search each one of them for the $startdate
and $enddate
values. If they exist in any of the directories then I want the script to return me with that list of filenames.