title: Identifying the files older than x-months by the filename only and deleting them
body: <p>I have 4 different files with different fileName.date formats, having a date embedded as part of the name. I want to identify the files older than 3 months based on their name only because the files would be edited/changed later as well. I want to create a shell script and run it as a cron.
  Here below are the file under the same directory:</p>
  
  <ol>
  <li>fileone.log.2018-03-23</li>
  <li>file_two_2018-03-23.log</li>
  <li>filethree.log.2018-03-23</li>
  <li>file_four_file_four_2018-03-23.log</li>
  </ol>
  
  <p>I have checked the existing example but have not found what I am actually looking for!</p>