Hi,
I am working on a project that compares 2 files and generates an output, the input file format is this: xxxx xxxxxxxxxxxxxxx yyyyyyyyyyy xxxxxxxxxxxxx xxxxxxxx
I use diff -c -w -B file1 file2 >diff.txt, the output format is this:
file1 xxxx xxxxxxxxxxxxxxx yyyyyyyyyyy xxxxxxxxxxxxx xxxxxxxx
-------------------------------
file2 xxxx xxxxxxxxxxxxxxx zzzzzzzzzzzz xxxxxxxxxxxxx xxxxxxxx
is there a way I can get rid of the common lines, only show the different part? something like
file1 yyyyyyyyyyyyyy
---------------------'
file2 zzzzzzzzzzzzzzzz
I tried diff -y --suppress-common-lines, it is not working. I tried sdiff, it only shows both files first left column even if they are identical.
I am working on a project that compares 2 files and generates an output, the input file format is this: xxxx xxxxxxxxxxxxxxx yyyyyyyyyyy xxxxxxxxxxxxx xxxxxxxx
I use diff -c -w -B file1 file2 >diff.txt, the output format is this:
file1 xxxx xxxxxxxxxxxxxxx yyyyyyyyyyy xxxxxxxxxxxxx xxxxxxxx
-------------------------------
file2 xxxx xxxxxxxxxxxxxxx zzzzzzzzzzzz xxxxxxxxxxxxx xxxxxxxx
is there a way I can get rid of the common lines, only show the different part? something like
file1 yyyyyyyyyyyyyy
---------------------'
file2 zzzzzzzzzzzzzzzz
I tried diff -y --suppress-common-lines, it is not working. I tried sdiff, it only shows both files first left column even if they are identical.