Re: recursively find duplicate filenames

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On 1/5/2011 10:48 AM, S Mathias wrote:
> "duplicate filenames"
>
> ->  duplicate filenames
>
> --- On Wed, 1/5/11, Dominik Zyla<gavroche@xxxxxxxxxxx>  wrote:
>
>> From: Dominik Zyla<gavroche@xxxxxxxxxxx>
>> Subject: Re:  recursively find duplicate filenames
>> To: centos@xxxxxxxxxx
>> Date: Wednesday, January 5, 2011, 1:11 PM
>> On Wed, Jan 05, 2011 at 03:15:03AM
>> -0800, S Mathias wrote:
>>> find duplicate filenames in a folder
>>> find | perl -ne 's!([^/]+)$!lc $1!e; print if 1 ==
>> $seen{$_}++'
>>>
>>> find duplicate filenames in a folder recursively
>>> ? how?
>>
>> What do you mean - duplicate? Duplicate by what? Name?
>> Content?

That's still ambiguous. Does duplicate mean exactly two instances with 
case insensitive matching?  I think that's what your script does.  Of 
course in a single directory, you can't have exact duplicates...

Do you mean exact duplicates of a basename found anywhere down a tree, 
your case insensitive match limited to one instance within a single 
directory, or ???

-- 
   Les Mikesell
    lesmikesell@xxxxxxxxx
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux