Can you give an example of what you've tried and what you would like the
expected outcome to be?

Here's a quick sample showing lines 4 and 5 have been added:

$ diff <( seq 1 3 ) <( seq 1 5 )
3a4,5
> 4
> 5

Regards,
- Robert


On Tue, Dec 27, 2022 at 2:35 PM Ben Koenig <[email protected]>
wrote:

> Hi all,
>
> I thought there was a command to do this but I'm having trouble finding it
> and diff is doing strange stuff.
>
> I have a csv file that grows over time. What I want to do is take a newer
> version of the file, compare it to the old one, and only print the lines
> that are different. This also needs to be easily automated within a BASH
> script.
>
> Are there options to diff that I'm missing or a different command that can
> quickly print only those lines unique to the first file? I'm resisting the
> urge to read the lines into a python list and compare manually.
>
> -Ben

Reply via email to