title: Write the file name before deleting
body: <p>I want to delete all the .png files in a directory and save the delete files names in a text file. I managed to do this with the following command:</p>
  
  <pre><code>find . -name "*.png" -delete -print &gt;&gt; log.txt
  </code></pre>
  
  <p>Everything works fine and in the log I get the entire the path of the file deleted. But if there are multiple files to be deleted, the names placed in the log are all on the same line. </p>
  
  <pre><code>C:/Users/Dragos.Cazangiu/Desktop/TesteCyg/CMDER/New Bitmap Image3.pngC:/Users/Dragos.Cazangiu/Desktop/TesteCyg/CMDER/2.pngC:/Users/Dragos.Cazangiu/Desktop/TesteCyg/CMDER/New Bitmap Image.png
  </code></pre>
  
  <p>How can I make it put each file on a new line and also how can I add a message before the path, something like "The deleted file is: "</p>
  
  <p>Thank you!</p>