6.25 Is there a way in MPE to compare the contents of two files to see if they are the same?
Use the command
:
FCOPY FROM = <fromfilename>;TO=<tofilename>;COMPARE=###
where
### is the maximum number of errors
(non-matches) allowed before the compare halts.
You can also use comm from the Posix shell:
comm [-123] file1 file2
comm locates identical lines within files sorted in the same collating sequence, and produces three columns; the first contains lines found only in the first file, the second lines only in the second file, and the third lines which are in both files. In the options, -1 suppresses lines that appear only in file1; -2 suppresses lines that appear only in file2; -3 suppresses lines that appear both in file1 and file2.