SyntaxFix
Write A Post
Hire A Developer
Questions
I belive you can use
rm -v !(filename)
Except for the filename all the other files will e deleted in the directory and make sure you are using it in