merge (merge 3 files)

Merges the changes in two files into another file.

Format:    merge file1 file2 file3
Examples:  merge report1 report2 report3

First merges the changes in file2 into file 1. Then merges the changes in file3 into file 1; file2 and file3 remain unchanged.

OptWhat It DoesExamples
-pDisplay changes, rather than overwrite file1merge -p

Get Spring Into Linux® now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.