How to delete all files in the current dir – but not those which have 1.65 in the title?
I tried to capture such files with
*[^1][^\.][^6][^5]*
*[^\(1\.65\)]*
(one can press Alt-* to expand the regexp)
but it doesn’t work. Here’s a code for experiments:
touch foo1.65bar \#bla1.66 qbit0.65t 1.65boris notRelated@All
It is often more reliable and expressive to use find for such jobs: