On May 6, 11:19 am, "Agostinho, Rogerio" <
ag.roge...@gmail.com> wrote:
> Is there a command that brings the number (amount) of inserted, deleted and
> updated lines between 2 versions of a file?
For text files only, of course, you have:
ct diff -pred -serial
egrep '^> ' to keep only the new lines,
and '^< ' to keep only the old ones.
Pipe the result to wc -l to count.
This doesn't spot the updated lines...
It counts them as both deleted and added.
It is trivial to convert this to perl, so that it runs on Windows.
Of course, this must have been done zillions of times already.
I guess one must make one's own mistakes oneself.
Marc