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:>
With bash, you can get "negative" matching via the extglob shell option:
extglob
shopt -s extglob rm !(*good*)