diff vs cmp compare question
Hi, I am using Free BSD system and am investigating the usage of diff and cmp.
I have two files, and the only difference is mainly in the path. I have searched the man pages for both diff and cmp, and have not found a way to ignore the path.
One file has a line with this path:
and the other has a line with:
It does not matter what the actual path name of the files are. I am only interested in the differences of the text in the files, ignoring the path listed in the files.
Both files have over one hundred lines, and I wish to be able to find out differences other than the path.
There obviously will be more differences in these files other than the path, but I wish to be able to ignore the path differences and concentrate on the other text differences.