Originally Posted by madridlinuxgroup
Did you actually try my solution?
Who? Me? Yes, I tried it with some dummy files. Results as expected. Did you
try your solution?
Try it with the following filenames:
What the OP wants is only for the three files a1.tex,a2.tex,a3.tex to NOT be deleted. Anything else can go. Your solution will not delete xt,a.t and a.b.
P.S.: However, I noticed a typo ('.text' instead of '.tex') in my previous post. Corrected it.