Re: OK, a REAL Linux question... ; -) I need a"one-liner" (b…

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: kitepilot@kitepilot.com
Date:  
To: Main PLUG discussion list
New-Topics: RE: OK, a REAL Linux question... ; -) I needa"one-liner" (because I am lazy)
Subject: Re: OK, a REAL Linux question... ; -) I need a"one-liner" (because I am lazy)
>> *diff | wc -l* for each combination of file?
>> have you tried ls -t, to see when the files were modified ?

There are several hundreds of files in a 10-15 depth tree.
That means that "ls -t" won't work, and firing a loop to diff each one, to
every other, will yield so many false positives that the result (if found)
will be lost in the noise.

It has to be some sort of "fuzzy" diff.
I used to use a program called Uniquefiler that did that for pictures.
Sometimes it would come up with some very creative matching, but in general
it was an excellent program.
I don't it need now, but I'd certainly like to know if someone knows of a
Linux variant.
Thanks! :)
ET


Eric Cope writes:

> *diff | wc -l* for each combination of file?
>
> On Thu, Feb 26, 2009 at 3:12 PM, Bob Elzer <> wrote:
>
>> No you don't qualify, this is the Phoenix List. Just kidding.
>>
>> have you tried ls -t, to see when the files were modified ?
>>
>>
>> -----Original Message-----
>> From:
>> [mailto:plug-discuss-bounces@lists.plug.phoenix.az.us] On Behalf Of
>>
>> Sent: Thursday, February 26, 2009 2:25 PM
>> To: Main PLUG discussion list
>> Subject: OK, a REAL Linux question... ;-) I need a"one-liner" (because I am
>> lazy)
>>
>> I have a bunch of text files.
>> Makefile(s), that is.
>>
>> I know that one of them (THERE ARE TONS!) was slightly modified.
>> Names are meaningless, so it won't work.
>> There are more changes that mere whitespaces, so diff -w ... won't work
>> either.
>>
>> Question is:
>> How do I find 2 files that are "almost" the same file?
>>
>> I have thought of different approaches, but none of then are one-liners.
>> Is there a one-liner for this?
>> Thanks!
>> Enrique
>>
>> PS: I live in North West GA, play the worker in South Florida, drive like a
>> mailman and consider "the neighborhood" anything within 200 miles.
>> Do I qualify as member of this list? ;-)
>> ---------------------------------------------------
>> PLUG-discuss mailing list -
>> To subscribe, unsubscribe, or to change your mail settings:
>> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
>>
>> ---------------------------------------------------
>> PLUG-discuss mailing list -
>> To subscribe, unsubscribe, or to change your mail settings:
>> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
>>

---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change your mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss