I have the 2 files file1 and file2
the 2 files have the following records per line
A big number of records are identical in file 1 and file2
I have truied to concatenate
cat file1 >> file2
and sort file2
uniq -u file2
in order to receive only the different lines and not the common but it doesn't work.
What command can I use in order to do it?