LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (http://www.linuxquestions.org/questions/linux-general-1/)
-   -   "Diff" output format (http://www.linuxquestions.org/questions/linux-general-1/diff-output-format-124205/)

ganninu 12-09-2003 09:31 AM

"Diff" output format
 
How can I make "diff" display only the lines different between two files without other details such as "a3 3"?? The closest one is "diff -n file1 file2"...

ganninu.

ganninu 12-09-2003 09:39 AM

Ok i found out the solution -

diff -n file1 file2 | sed 1d

ganninu


All times are GMT -5. The time now is 07:21 AM.