-   Linux - Virtualization and Cloud (
-   -   Diff Command is possible for me? (

admod 11-21-2010 09:21 AM

Diff Command is possible for me?
Hi Friends,

I noticed the posting in URL : files-diff.html .Is there a way to use the diff command between an older and a newer version of a file and only display the lines that have been added to the newer file and not the ones that have been removed without any of the explanation formatting, just the new lines. I'm trying to bypass the process of putting both files into a database and running an SQL "left join where old data is null" as I will need to do this on a regular basis.

Please let me know if my inquiry is not clear or needs further explanation.

Thank you in advance for any help you can provide.

Anes P.A

H_TeXMeX_H 11-21-2010 09:42 AM

Why did you post this in the visualization forum ? I say you report this and have it moved to Linux General, because it will get more exposure. Does it have something to do with virualization ?

Anyway, I would use 'comm' for this, see 'man comm', you'll probably use 'comm -13' or '-23'.

All times are GMT -5. The time now is 05:02 AM.