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
Table of contents Preliminary Notes Problem Repro...
To facilitate the maintenance of MySQL, a script ...
DOM Concepts DOM: document object model: The docu...
This article shares the specific code of the WeCh...
1. Modify 1 column update student s, city c set s...
vue implements the drag and drop sorting function...
Vue implements the palace grid rotation lottery (...
Basic Environment Pagoda installation service [Py...
First, I will give you the VMware 14 activation c...
Table of contents 1. Introduction 2. Install Dock...
Table of contents Method 1: set: It is not a data...
<br />This is not only an era of information...
The offline installation method of MySQL_8.0.2 is...
Table of contents Master-slave replication mechan...
Table of contents Background 1. Thought Analysis ...