I am using Linux and intend to remove some files using shell.
I have some files in my folder, some filenames contain the word \"good\", others don\'t. For example:>
This command should do what you you need:
ls -1 | grep -v 'good' | xargs rm -f
It will probably run faster than other commands, since it does not involve the use of a regex (which is slow, and unnecessary for such a simple operation).