Home » Questions » Computers [ Ask a new question ]

How do I delete all the files that contain a certain string in a directory in UNIX?

How do I delete all the files that contain a certain string in a directory in UNIX?

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).

Asked by: Guest | Views: 70
Total answers/comments: 2
Guest [Entry]

rm *\).MOV
Guest [Entry]

"Try this:

find . -name ""*).MOV"" -exec rm {} \;"