[Date Prev][Date Next][Subject Prev][Subject Next][ Date Index][ Subject Index]

Much easier way to do file comparison



I've been a blind, bloody fool. I just realized the dead simple solution to
what I want. It doesn't require GoXy or anything fancy:

- Open FileA and FileB in alternate windows (of one iteration of Xy).
- Run a little XPL program (below) that does FM (Find Match) and FD (Find Difference) in a loop, highlighting the differences in FileB by writing and into FileB.

- NOW, launch a second iteration of Xy and open FileA
Bingo! You've got FileA in one Xy and in the other Xy you've got FileB with its differences from FileA highlighted.

No muss, no fuss.

XPLeNCODE v2.0
b-gin [UNTITLED]
[BC_]Is this window showing the first file to compare? (-/n){
<}SV5,n{>}{<}IF{<}RC{>}=={<}IS5{>}{>}{<}GL_{>}{<}EI{>};*;
[cr|lf][XP_][AS_][BC_]Ok, now is this the SECOND file? (-/n){
<}SV5,n{>}{<}IF{<}RC{>}=={<}IS5{>}{>}{<}GL_{>}{<}EI{>};*;
[cr|lf][BC_][XP_][DO_];*;[cr|lf]{<}LBA{>};*; LOOP [cr|lf]{<}I
F{<}VA$FE{>}>0{>}[TF_][WG_][AS_][TF_][WG_][AS_]{<}GL_{>}{<}EI
{>};*;[cr|lf][AS_][FM_][AS_]{<}MD-27{>}[AS_][FD_][AS_]{<}MD+2
7{>}{<}GLA{>}{<}LB_{>}{<}EX{>}
-nd
XPLeNCODE
Next task is to write a script using GoXy that will ease your traveling down through the files in the two iterations, maybe even using FM and FD again. But I love the way the above XPL program makes the file look, because on my system is off-white on red, so the diffs show up in red. Obviously, one can choose any mode and any colors one wants.
And, yes Carl, I did check U2, and did find LISTDIFF. But that isn't meant
for this particular usage.

Harry Binswanger
hb@xxxxxxxx