Get the App
SLTechnology News&Howtos  ›  Development  › 

How does linux repeat two files?

Shulou Source: shulou.com Published: 2022-06-02 01:06:10 10月03日 Update

This article mainly explains "how to repeat two documents by linux". Friends who are interested might as well take a look. The method introduced in this paper is simple, fast and practical. Now let the editor take you to learn "how to repeat two files by linux"!

For example, if you have two genetic id files, what should you do if you want to know the id shared by these two files?

One line of command can solve the problem:

Cat File 1 File 1 | sort | uniq outputs the union of these two files

Cat File 1 File 1 | sort | uniq-d outputs the intersection of the two files

Cat File 1 File 1 | sort | uniq-u outputs the id where the file is deleted and intersected

At this point, I believe you have a deeper understanding of "how linux repeats the two files". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!

Tags: Files two that is output intersection content learning practical deeper one line interest command gene utility practical simple operation method more friends website Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno macOS Xiaomi Apple vpn OPPO Reno