The use of Comm

Source: Internet
Author: User
1, the function of Comm

Row by line comparison of two sorted text files
Basic usage: Comm-[123] File1 file2

2. Example

1) display two text files all rows
#comm -12 file1 file2

2) Show file1 rows in the File2, and unique rows in the
#comm-3 File1 file2

3) Show unique rows in File1
#comm -23 file1 file2

4) Show unique rows in File2
#comm -13 file1 file2

5) Show rows in all two files
#comm -12 file1 file2

3. Attention

1) 1 represents a single row in the File1, 2 represents a single row in File2, 3 means that file1 and file2 have rows
2)-Indicates no display,
3)-and the combination of the lines to be displayed

=-=-=-=-=
Powered by Blogilo

The use of Comm

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.