Problem using diff command in unix

Hi,

I am trying to do a diff between two files using "diff" command.I dont need my output to be printed using extra symbols ">" and "<" as we usually see for the diff command. Even to excude these characters in each line of the output, my diff output has inturn many symbols ">" and "<".

Please help.

Thanks,
hari

You can run your diff through sed:

diff file1 file2 | sed 's/^[<>] /'

This will leave the lines intact except for the leading > or < and space. It will also leave behind the ed lines like:

1,10c4,14

You can use sed or grep to filter those out easily enough.