我正在使用gnu diffutils输出两个sql文件之间的差异,方法如下:
diff -e abc.sql abcd.sql >diff.sql但保存的差异也显示了在差异之前找到的行号和在差异之后的句号。
我只想显示差异,而忽略行号和句号。
发布于 2015-06-03 15:53:07
diff --line-format=%L file1 file2来自man diff
--line-format=LFMT
format all input lines with LFMT
LFMT (only) may contain:
%L contents of linehttps://stackoverflow.com/questions/30613913
复制相似问题