From: "Måns Rullgård" <mans@mansr.com>
To: linux-kernel@vger.kernel.org
Subject: Re: case-duplicated filenames
Date: Tue, 11 Aug 2009 13:38:29 +0100 [thread overview]
Message-ID: <yw1xy6pq7cfu.fsf@unicorn.mansr.com> (raw)
In-Reply-To: <9b2b86520908110243r3d527b3n518fe4d3714a7bde@mail.gmail.com>
Alan Jenkins <sourcejedi.lkml@googlemail.com> writes:
> On 8/11/09, Tony Mantler <nicoya@ubb.ca> 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 "
>
> [*] Posix compliance not guaranteed. I don't know how standard uniq -i is.
It's not standard. You're also assuming case-insensitive sort. Using
sort -f increases the chances of this doing what you want, but it
still depends on the locale settings.
--
Måns Rullgård
mans@mansr.com
next prev parent reply other threads:[~2009-08-11 12:38 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-11 2:05 Tony Mantler
2009-08-11 2:22 ` David Newall
2009-08-11 2:26 ` Tony Mantler
2009-08-11 9:43 ` Alan Jenkins
2009-08-11 12:38 ` Måns Rullgård [this message]
2009-08-11 14:15 ` David Newall
2009-08-11 2:35 ` Måns Rullgård
2009-08-11 3:24 ` Charles Johnston
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=yw1xy6pq7cfu.fsf@unicorn.mansr.com \
--to=mans@mansr.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®