Update join.md (#414)

This commit is contained in:
小弟调调™ 2022-09-05 17:29:40 +08:00 committed by GitHub
parent bbd6994a1d
commit 38e2b3dc57
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -32,7 +32,9 @@ join(选项)(参数)
* 文件2要进行合并操作的第2个文件参数。
### 常见用法
把两个文件制定栏位内容相同的行连接起来:
```shell
[root@localhost ~]# cat name
1 xiaoming
@ -49,7 +51,9 @@ join(选项)(参数)
2 xiaowang hubei wuhan
3 xiaoliu hunan changsha
```
把两个文件指定列拼接起来:
```shell
# 把name文件的第2列和city文件的第3列拼接起来
[root@localhost ~]# join -o 1.2 2.3 name city