help-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Diff: obtain only the different lines of the newest file


From: Davide Brini
Subject: Re: Diff: obtain only the different lines of the newest file
Date: Thu, 12 Aug 2010 11:37:15 +0100
User-agent: KMail/1.13.5 (Linux/2.6.34-gentoo-r1; KDE/4.4.5; x86_64; ; )

On Thursday 12 Aug 2010 05:20:47 Kimahri Ronso wrote:

> This is my first post in this mailing list. I hope there is a solution to
> my doubt.
> 
> My question is about the diff command.
> 
> I have 2 files containing almost the same information with around 70.000
> records.
> 
> What I would like to know is if there is a possibility to obtain only the
> different lines from the second file without anything else.
> 
> I just need to know the content of the changed lines in the newest file.

If I read the diff man correctly, that would be something like

diff --changed-group-format='%<' --unchanged-group-format='' newfile oldfile

-- 
D.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]