Comment supprimer tous les fichiers sauf un dans Linux

# if you are using a loop

shopt -s extglob

rm -rf !("abc.txt" | "abc.log" )  # others will be removed except these two
OR
rm -v !(*.zip|*.odt)

shopt -u extglob 
Hutch Polecat