How to remove the same rows from two files? Thank you !!!

Source: Internet
Author: User
How to remove the same rows from two files? Thank you !!! -- Linux general technology-Linux technology and application information. For details, refer to the following section. Which one knows how to use the command to remove the same lines in the two files. The format and length of each line in file1 and file2 are the same. For example, if one line is 432532, the content in file1 fully contains file2, I want to remove file2 from file1. I don't know how to do it? Sdiff, sort, and uniq have all tried, such as cat file1 file2 | sort | uniq-u> XXX. The number of file1 rows is large, with more than 30000 rows. Which one can help? Thank you !!!

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.