-
check the find result
find . -name “*.bak” -type f
-
delete it
find . -name “*.bak” -type f -delete
Ref. ask Ubuntu: How can I recursively delete all files of a specific extension in the current directory?
check the find result
find . -name “*.bak” -type f
delete it
find . -name “*.bak” -type f -delete
Ref. ask Ubuntu: How can I recursively delete all files of a specific extension in the current directory?