find . -name "*.bak" -type f -delete # But use it with precaution. # Run first: find . -name "*.bak" -type f
find . -name "*-output.jpeg" -type f -delete