Percentage of users for whom the command worked.
Created on Mar 22, 2017 by pabloked
rm !(*.foo|*.bar|*.baz)
Deletes all files in a folder that are NOT *.foo, *.bar or *.baz files. Edit the pattern inside the brackets as you like.
rm - remove files or directories
rm [OPTION]... [FILE]...
This manual page documents the GNU version of rm. rm removes each specified file. By default, it does not remove directories.