[Techtalk] finding added lines in a file

R. Daneel Olivaw rdaneel.olivaw at gmail.com
Fri Aug 16 03:23:56 UTC 2013


Hi,

Le 2013-08-15 19:59, Miriam English a écrit :
> Hi folks,
>

[...]

> Anybody know the secret?
>
>   - compare two files, A and B
>   - just print the additional lines of file B

on linux
diff --suppress-common-lines A.txt B.txt
should give a basic output
for a 'clean' output, first and easy trick:
diff --suppress-common-lines A.txt B.txt | egrep '<|>' | cut -c 3-

> It should be easy, right? I'm completely stumped.

Let's say, as soon as you know it it looks easy ;)


R. Daneel Olivaw,
The Human Robot Inside.


More information about the Techtalk mailing list