I have a simple need to recursively find and delete files of a certain extension. So I have syntax that will find and remove the files and pipe them into xargs -0 rm, but I can't seem to create a log of the files that were removed. What I have so far:find /var/www/html -type f -regex .*/.*\.(png|jpg) -print0 |xargs -0 rm
How do I log xargs -0 rm?
shell;xargs