how to compare 2 very large textfiles
Pete
pete at mollysrevenge.com
Thu Oct 6 19:28:23 EDT 2011
Good point Jim. As you say, it should work fine for fully qualified names.
If the intent was to find duplicates as well as missing lines, then I would
"add 1 to myArray[i]["A"]" instead of putting true in there. Then in the
final repeat loop check for "> 1" in each key to list duplicates.
Pete
Molly's Revenge <http://www.mollysrevenge.com>
On Thu, Oct 6, 2011 at 4:02 PM, Jim Ault <jimaultwins at yahoo.com> wrote:
> On Oct 6, 2011, at 5:50 PM, Matthias Rebbe wrote:
>
> put the dgtext of grp "Festplatte 1" into tHDD1
>> put the dgtext of grp "Festplatte 2" into tHDD2
>>
>> REPEAT FOR each line i in tHDD1
>> put true into myArray[i]["A"]
>> END REPEAT
>>
>> REPEAT FOR each line i in tHDD2
>> put true into myArray[i]["B"]
>> END REPEAT
>>
>
> Major Caution:
>
> This technique only works robustly if every line in tHDD1 is unique
> and if every line in tHDD2 is unique
> since using myArray [i] ["A"] would make duplicates within each list
> disappear.
> If your desired result is not affected by this, then the result will be
> correct.
>
> Path name comparisons are unique by their nature, but not all data sets
> are.
>
>
> Jim Ault
> ______________________________**_________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/**mailman/listinfo/use-livecode<http://lists.runrev.com/mailman/listinfo/use-livecode>
>
>
More information about the use-livecode
mailing list