I have a directory with several duplicate files, created by a program. The duplicates have the same name (except for a number), but not all files with the same name are duplicates.
What's a simple command to delete the duplicates (ideally a single line limited to GNU coreutils, unlike the question about scripts)?
Example filename:
parra1998.pdf
parra1998(1).pdf
parra1998(2).pdf