To merge the following two files, merge them together and merge them into 1.txt # 1.txt Jerry 20 Alice 30 David 40 # 2.txt Jerry man Alice woman David 40 Merged 1.txt
The above files have the same characteristics, so they are merged, and the second column is missing. At this time, using join -a1 1.txt 2.txt can achieve the purpose well. [root@host ~]# join -a1 1.txt 2.txt Jerry 20 man Alice 30 woman David 40
Summarize The above is the full content of this article. I hope that the content of this article will have certain reference learning value for your study or work. Thank you for your support of 123WORDPRESS.COM. If you want to learn more about this, please check out the following links You may also be interested in:
|
>>: Detailed explanation of the fish school algorithm in CocosCreator game
1. Overview MySQL version: 5.6.21 Download addres...
Table of contents 1. ACID Characteristics Transac...
The installation process is basically the same as...
This article example shares the specific code of ...
1. New and old domain name jump Application scena...
1. Built-in functions 1. Mathematical functions r...
FFMPEG 3.4.1 version parameter details Usage: ffm...
Table of contents 1. We found that this website m...
1. Mobile selection of form text input: In the te...
Table of contents 1. Closure 2. Closure usage sce...
Recently, I have a need to list all host names in...
I don't know if you have noticed when making a...
Preface: MySQL is a relational database managemen...
The <area> tag defines an area in an image ...
1. Modify 1 column update student s, city c set s...