Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有 2 个文件 - a 和 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"
如何区分这两个文件并仅显示 a_number 中的部分更改而不是整个字符串?
我喜欢用
$ wdiff a b # 1,"abc","( @docid =""00123"" or @docid =""00456"") AND [-a_number-] {+@a_number+} is not NULL"