Linux diff3-compare 3 files in different places

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.