Let say you want to delete all files of type ".bak" recursively from a folder.
Step 1: List all the files of ".bak" in the folder to check whether you will delete the correct files.
- Open up Terminal
- In the command line, type: cd
- Drag and drop the folder you wish to delete ".bak" files from.
- Press enter.
- In the command line, type:
find . -name '*.bak' -type f - Press enter.
If you are confirmed that you want to delete the listed files, proceed to Step 2.
Step 2: Delete all the "*.bak" files.- In the command line, type:
find . -name '*.bak' -type f -delete - Press enter.
Please be careful.
No comments :
Post a Comment