elthox gave you the answer....
Quote:
|
and manipulate the output using > and < which indicate wo thich file the lines belong
|
Example: To get everything in file2 that is not in file1:
diff file1 file2 | grep ">"
Then use SED to remove the leading ">"
EDIT: Elthox beat me to the punch, AND with a better answer...