LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Virtualization and Cloud (http://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/)
-   -   Diff Command is possible for me? (http://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/diff-command-is-possible-for-me-845630/)

admod 11-21-2010 10:21 AM

Diff Command is possible for me?
 
Hi Friends,

I noticed the posting in URL : http://lowfatlinux.com/linux-compare- 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.

thankfully,
Anes P.A

H_TeXMeX_H 11-21-2010 10: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 06:55 PM.