I have big filesystem structure which contains many files with different extensions, for example
index.html
logo.png
package.zip
Many of those files has its duplicates with added e
letter at the end, so:
index.htmle
index.htmlee
package.zipe
and so on.
I have to remove recursively every duplicated file with e+$
at the end. But if there is file
file.exe
it should remove
file.exee
file.exeee
but not
file.exe
What is the best way to remove those files ?