Tag: color ack www. HTML must be in addition to the tab file for Tle
recommended: More Linux file Lookup and comparison commands attention:Linux commands Daquan
The diff3 command is used to compare 3 files, showing different places of 3 files to standard output.
Grammar
DIFF3 (option) (parameter)
Options
-A: All files are compared as text files according to the behavior unit, that is, the given file is not a text file;-A: Merge between the 2nd file and the 3rd file into the 1th file, the conflicting content is enclosed in parentheses;-B: Same as option "-a", but does not display conflicting content;-e/ --Ed: Generate a "-ed" script to merge the differences between the 2nd file and the 3rd file into the 1th file;--easy-only: The same functionality as the option "-e" except that it does not show overlapping changes;-I: For compatibility with System V systems, in the "Ed "W" and "Q" commands are generated at the end of the script. This option must be in conjunction with the option "-aeexx3", but not with "-M";--initial-tab: Prints a tab character instead of two white-space characters before the text of a normal-formatted line. This option causes the tab character alignment in the row to appear canonical.
Parameters
- File 1: Specify a 1th file to compare;
- File 2: Specify a 2nd file to compare;
- File 3: Specify a 3rd file to compare.
Linux diff3-compare 3 files in different places