Monday, February 07, 2022

How can I recursively delete all files of a specific extension in the current directory?

You don't even need to use rm in this case if you are afraid. Use find:

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

find . -name "*.bak" -type f
to see exactly which files you will remove.

No comments:

Post a Comment

How to revert comments Youtube layout?

#see video for details  https://www.youtube.com/watch?v=J0L_nYtNlqs #uBlock Origin  https://chrome.google.com/webstore/detail/ublock-o...