finding difference between two files

Hi,

I have two files
one with 12486 lines
second one with 13116
As per the comparsion between two files the count have 630 difference

I used diff command to find the difference between two files but it's not understandable

could any one suggest any command to get 630 records in a new file.

Thanks
Thelak

diff <(sort file1) <(sort file2) |grep ">" > new.file

Hi,

Sorry it's not working

It displaying with ksh: syntax error: `(' unexpected error

if i used with out braces it displays with
ksh: sort: cannot open

Regards
Thelak

This might help you ..

Try this

comm -13 file1 file2 > output

--ahamed