I have a lot of duplicate files in a folder and I would like to delete the duplicate. As of now i have FileA.jpg and FileA(1).jpg. I would like to make a short script that open a directory and finds any file name that has a ( and then delete it.
How would I do this?