cmd - Display only difference using diff utils -


i using gnu diffutils output difference between 2 sql files using following:

diff -e abc.sql abcd.sql >diff.sql 

but difference saved showing line number found before difference , full stop after it.

i want display difference , ignore line number , full stop.

diff --line-format=%l file1 file2 

from man diff:

   --line-format=lfmt           format input lines lfmt            lfmt (only) may contain:     %l     contents of line 

Comments