title: Find files older than X days excluding some other files
body: <p>i'm trying to write a shell script, for linux and solaris, that finds some specific files older than X days and then deletes them. the trick is that during this process there are a couple of files that must not be deleted.</p>
  
  <p>for example from the following list of files i need to delete *.zip and keep *.log and *.something.*<br>
  1.zip<br>
  2.zip<br>
  3.log<br>
  prefix.something.suffix</p>
  
  <p>finding the files and feeding them to rm was easy, but i'm having difficulties in excluding the files from the deletion list.</p>