Wednesday, 20 January 2021

How to remove .jpg files in current and subfolders?

current folder and one level sub folder:-

find . -maxdepth 2 -type f -name "*.jpg" -delete 

or

find . -name "*.jpg" -exec rm -rf {} \;



No comments:

Post a Comment