I found several examples that work as long as there are no spaces in the filenames. Unfortunately, I have spaces in my filenames (not my choice, in fact they are the ones I need to remove).
So, for example, this is what I thought would work:
find . -type f | grep ).MOV | xargs rm
because I want to delete the files like:
- L112 (1).MOV
- L113 (1).MOV
- L113 (2).MOV
- etc.
and I want to keep the files like
- L112.MOV
- L113.MOV
- L114.MOV
- etc.
This finds the files correctly:
find . -type f | grep ).MOV
but when I pipe it to rm, the spaces in the filename screw it up.
Any help would be greatly appreciated.