At 13:33 +1300 on 10/01/2009, Miraz Jordan wrote about Re: How to 
best combine two different Grep Patterns.xml fil:

>On Thu, Oct 1, 2009 at 07:23, David <[email protected]> wrote:
>>  I have ended up with two different Grep Patterns.xml files on two
>>  different computers.
>>
>>  I want to get some of the Grep patterns from one file to another. What
>>  is  best way to edit the file...can I just copy and past the various
>>  strings? What parts of the entry has to be copied?
>>
>
>If it were me, I'd open both files on one computer and use BBEdit's
>excellent Compare or Find Differences feature (Search menu).
>
>That'll put the two documents side by side and show you everywhere 
>they differ.
>
>You can then easily click the arrow to copy the relevant text from one
>file to the other.
>
>Cheers,
>
>Miraz
>
>
>--
>Miraz Jordan

While this will work, the Compare and Find Differences features have 
one basic assumption that may make their use of little value. This 
assumption is that you are comparing two files that are versions of 
the same file (ie: That file 1 had lines added and/or deleted to form 
file 2). I do not think that it works very when you have the same 
content in both files in different orders. Thus if you have A B C D 
in one file and A C B D in the other, you will be told that there is 
a missing B in the first file (between C and D) and no B between A 
and C as well as a missing B in the second (Between A and C) with 
none between C and D. You must spot that both contain B (but in 
different locations). Any time you update a file by moving content to 
a new location as opposed to just removing/adding/replacing content 
you can run into this GOTCHA.
-- 

Robert A. Rosenberg
RAR Programming Systems Ltd.
Home: 845-357-0931
Cell: 646-479-1984
Fax:  646-349-4025

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the 
"BBEdit Talk" discussion group on Google Groups.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/bbedit?hl=en
If you have a feature request or would like to report a problem, 
please email "[email protected]" rather than posting to the group.
-~----------~----~----~----~------~----~------~--~---

Reply via email to