I have 2 files- a and b.
1,"abc","( @docid =""00123"" or @docid =""00456"") AND a_number is not NULL"
1,"abc","( @docid =""00123"" or @docid =""00456"") AND @a_number is not NULL"
How do I diff this 2 files and show only the part changes in a_number instead of the whole string?
I like to use
$ wdiff a b
# 1,"abc","( @docid =""00123"" or @docid =""00456"") AND [-a_number-] {+@a_number+} is not NULL"
Notice that wdiff includes a single line with annotations that indicate the portions of the line that were different.
The differences are shown in words (hence the name wdiff
for word differences).
In this case, this output
[-a_number-] {+@a_number+}
shows that the string a_number
was changed to @a_number
.