如何区分并显示2个长字符串的精确差异

时间:2013-06-25 06:24:41

标签: sql unix informix 4gl

我有2个文件 - a和b。

1,"abc","( @docid =""00123"" or @docid =""00456"") AND a_number is not NULL"

B'/ H1>
1,"abc","( @docid =""00123"" or @docid =""00456"") AND @a_number is not NULL"

如何区分这2个文件并仅显示a_number中的部分更改而不是整个字符串?

1 个答案:

答案 0 :(得分:0)

我喜欢用

$ wdiff a b

# 1,"abc","( @docid =""00123"" or @docid =""00456"") AND [-a_number-] {+@a_number+} is not NULL"