The stat commands you showed indicate the the files have different inodes.
That means that they are duplicate files and not just duplicate entries.
Don't worry about the lower case entries being a different color. I think
that indicates that they are associated with an application to display them.
I see the same thing.
You could check if they are truely unique by using the md5sum command to calculate their
hash values. Only identical files will contain the same hash values.
Code:
find /home/photographs/ -type f -iname "*.jpg" -exec md5sum '{}' \; | sort | uniq -w32 -D >duplicate_list
The list will contain a list of the original files and their duplicates.
Examine the list and see if you have pairs of .jpg and .JPG with the same md5sum values.
If the list is OK, you could remove the .jpg entries leaving only the .JPG entries to delete:
Code:
# lets preview this once first. If an environmental locale setting is wrong,
#sed might select both lower and upper case in some cases.
sed '/\.jpg$/d' duplicate_list
# if you see only .JPG files displayed then it is safe to proceed
sed '/\.jpg$/d' duplicate_list | tr '\n' '\000' | xargs -0 -L100 rm -v
P.S. could you edit one of your previous posts so that the width of this thread isn't 400 characters!