title: bash script to find old files based off date in file name
body: <p>I'm developing a bash script that needs to search out files within a single directory that are "old" based off a variable that specifies how many days need to pass before the threshold is exceeded and the files are marked for action (could be anything from move to archive to delete, etc...).</p>
  
  <p>The catch is that the modify time of the file is irrelevant in determining how old the files need to be before taken action upon, as the files may infrequently be changed, the execution time of the script can vary, etc...</p>
  
  <p>The time that determines hold the files are is in the actual file name in the form of YYYY-MM-DD (or %F with the date command).  take for instance the filename contents-2011-05-23.txt.  What command(s) could be run in this directory to find all files that exceed a certain amount of days (I have the threshold currently set to 7 days, could change) and print out their file names?</p>