Can someone help me with a relatively complex command-line file matching pattern?
I've got files in a directory as follows:
1.png 1_thumb.png 1-1.png 1-1_thumb.png 1-2.png 1-2_thumb.png 2.png 2_thumb.png 2-1.png 2-1_thumb.png 3.png 3_thumb.png 3-1_thumb.png
I want to list all the files that don't have a copy with the same filename with
-1 somewhere in it. So, in the example above, the results would be
NB: the file and its copy with "-1" in it will be the same filesize, if that helps.
Can anyone suggest how to do this?