With the exception of certain file extensions. (removing junk other than subtitle files from a video directory)
|
First, run
to check that it mathes only file types that you want. I'm a long time unix user and I always do this before asking any command to remove anything (typos always happen at the worst possible time). Then edit the previous command line to become
and run it. It should do what you want. You can repeat the |
|||||||||||||||||
|
|
here:
with |
|||||
|
is more easy to type and remember than anything else. You have to remember that -delete is position dependent, and deletes without further notice and trashcan. Just be careful, backup often, and test before deleting:
|
|||
|
|