How can I get diff to show only added and deleted lines? If diff can't do it, what tool can?
feedback
|
|
Another way to look at it: Show lines that only exist in file a:
Show lines that only exist in file b:
Show lines that only exist in one line or the other:
| |||
|
feedback
|
|
These columns are suppressable with Example:
And if you just want the unique lines and don't care which file they're in:
As the man page says, the files must be sorted beforehand. | |||
|
feedback
|
|
That's what diff does by default... Maybe you need to add some flags to ignore whitespace?
should ignore blank lines and different numbers of spaces. | |||||||||||||
feedback
|
|
No, The difficulty for any attempt at doing what you're looking for is how to define what constitutes a line that has changed versus a deleted one followed by an added one. Also what to do when lines are added, deleted and changed adjacent to each other. | |||||
feedback
|