Search code examples
linuxrm

Removing files that have special characters in their name


How do I remove files, with specific names.. For example, my file name is

This File Example (England).txt
This File Example (US).txt

I want to remove all the files with (England) in the name.

So I tried,

rm -f "*(Eng*"

But it doesn't work. Is there something needed for special chars?


Solution

  • This should do it:

    rm -f ./*'(England)'*