Linux Learning Notes View file Chapter

Source: Internet
Author: User

1 diff comparison of two files

#diff-y test.txt test.txt

All of the output source and destination files. The left and right two columns.

aaaa    aaaabbb     |     BCCC    <             >     ddd

Note | Represents two different rows in a file
< indicates that the row is in the file to the left of the source file

> indicates that the line is in the file to the right of the destination file

#diff-S Test1.txt test2.txt

Just output these two files in a different place

#diff BBSW test1.txt test2.txt >> a.txt

b white space s no difference still display information B do not check blank line W Ignore all whitespace characters

Save the results in the current directory A.txt file

Linux Learning Notes View file Chapter

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.