I would like to do a safe file removal
Naturally, the command
rm -f /dir/*
I want to modify the command such that it does not delete files with extensions
.f, .c, .h, .par, .com
on 01/17/2013 – Made popular on 01/17/2013
Can I modify the rm command with regular expression or something to delete
every file in current directory except files with extensions *.bmp, *.wav and *.png? It should be case insensitive because there are files like *.BMP or *.bMP.