I need some help with this:
I want to compare 2 files, and get an output file with only the new lines of File2 (compared to File1)

I didnt manage to do this with diff, any suggestions how to solve this?

Example:
File1:
A
B
C

File2:
A
B
C
D
E

Output file:
D
E

# grep -f file -v file1
D
E
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.