5

Delete everything except a few extensions

view full story
linux-howto

http://unix.stackexchange.com – 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. thank you (HowTos)