Problem: I need to delete files and folder from a directory full of files and folders with exceptions of files that I don't want to be deleted.
rm -r !(c_50.tbl sim.sh pam.prp PROINT spy.inp s.bak sr.ccmg sr.drp s.echo s.mdl st.prob SUB.bsub ufile)
Unfortunately, this command delete everything inside the directory
Note: In brackets the files that I don't want delete.
ufile is a folder.