Question regarding the diff command

When using the diff command how do you determine what is in one file and not the other or what are in both but slightly different..

Basically i have two files. One file contains the contents of an rcode folder on our Production box, the other contains the contents of an rcode folder on a Q1 box.. I've used awk on this files so that they just contain the file size and file name. e.g.
7615 prodquery.r
6875 prod_bclient_startup.r
5293 pendout.r
3839 pendevnt-f100.r

I've done a test run of this but but i can't work out from the diff output what is in one file but not the other or what is in both but slightly different.. ie file size.. how does the diff output showthese? Using korn shell if that makes a difference..

The diff command displays a different version of lines that are found when comparing two files. The < character precedes lines from the first file and > precedes lines from the second file.

(Peek and O'Reilly, Unix Power Tools, O'Reilly and Ass, 1993 p 507)

ok,
I've finally figured out that the diff output shows d � a line was deleted,
c � a line was changed & a � a line was added but it also gives the line numbers either side.

How can I show whats just in the original file. I'm guess that would be the lines with < and the d character but how can I just output the lines that contain these?

The diff command shows changes only.

If you can sort both input files the "comm" or "sdiff" commands are worth a look.

Personally I'd compare the output from "cksum" to decide if two files were exactly the same.

How about

diff file1 file2 | grep "^<"

Thanks, grep is the best solution.. Some times the easiest thing to do is the least obvious..