program to find the uncommon numbers between two files.

Hi,

I need to extract the uncommon numbers from file1 and file2

For Example:

File1
1
2
3
4
5

File2
1
2
3
4
5
6
7
8
9
10

If i compare this two file the output should be iam using solaris version 5.8 pls give me script which should be compatible to run in this version Thanks in advance.

output file should be
6
7
8
9
10

A clumpsy solution,

 diff -e /tmp/f1 /tmp/f2 | sed -e '1d' -e '$d'

Assuming f1 & f2 has only the numbers

Thanks
Nagarajan G

Thanks Nagarajan .neenga tamilaa