LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Diff compare 2 files (http://www.linuxquestions.org/questions/linux-newbie-8/diff-compare-2-files-249795/)

DavidTempler 11-01-2004 08:58 AM

Diff compare 2 files
 
Hi,

I am trying to get to grips with diff

I read the manaul but I want to show the difference only between two files

I use diff -u <file1> <file2>

but it would be easier for me to just see what is different in <file2>

Is this possible or do I need to use something else?

Dave T.

ksgill 11-01-2004 10:01 AM

diff -y
this should give u output in two columns, side by side for file1 and file2. Its all in the manual.

DavidTempler 11-01-2004 11:00 AM

Thank you very much:D


All times are GMT -5. The time now is 06:34 AM.