[Gllug] Finding files with names that differ by case

Jon Dye jon at pecorous.co.uk
Thu Sep 20 13:31:23 UTC 2007


Hi,

I have a directory tree full of files and I'd like to find all the files
 whose names only differ in case.  Where files differ by case they
should be in the same directory as each other, e.g.

/one/two/three
/one/two/Three
/one/four
/one/Four

Does anyone have any suggestions as to how I can achieve this?

This is a result of transferring the files to windows and back and I
want to delete the duplicates so I only have one copy of each file.

The contents should be identical if that's any help.

JD

-- 
"The NRA says guns don't kill people... people kill people. I think the
gun helps!"
		- Eddie Izzard

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 257 bytes
Desc: OpenPGP digital signature
URL: <http://mailman.lug.org.uk/pipermail/gllug/attachments/20070920/38e14072/attachment.pgp>
-------------- next part --------------
-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug


More information about the GLLUG mailing list