Re: case-duplicated filenames

From: Alan Jenkins
Date: Tue Aug 11 2009 - 07:53:48 EST


On 8/11/09, Tony Mantler <nicoya@xxxxxx> wrote:
> David Newall wrote:
>> Tony Mantler wrote:
>>> A co-worker reminded me this afternoon that the linux source tree does
>>> not
>>> get along well with case-insensitive filesystems. Ever the curious and
>>> bored sort, and in the middle of an sqlite bender, I decided to cook up a
>>> quick script to find exactly what files those are.
>>>
>>
>> Such an extravagant process: you're just being silly.
>
> Well I did say I was bored. ;)

Performance aside, it's a one-liner in shell* ;).

find | sort | uniq -ic | grep -v " 1 "

Alan

[*] Posix compliance not guaranteed. I don't know how standard uniq -i is.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/