title: Linux find and delete files but redirect file names to be deleted
body: <p>Is there a way to <strong>write the file names to a file</strong> before they are deleted for reference later to check what has been deleted. </p>
  
  <pre><code>find &lt;PATH&gt; -type f -name "&lt;filePattern&gt;" -mtime +1 -delete 
  </code></pre>