paste命令-合并文件
· 技术积累 · Linux

Linux paste命令用于合并文件的列


paste指令会把每个文件以列对列的方式,一列列地加以合并


作用:合并两个文件内容,并不是追加合并,而是并列合并

例子:

[root@localhost ~]# cat a.txt 
1
2
3
4
5

[root@localhost ~]# cat b.txt 
a
b
c
d
e

合并两个文件的效果
[root@localhost ~]# paste a.txt b.txt 
1    a
2    b
3    c
4    d
5    e

[root@localhost ~]# paste a.txt b.txt >c.txt
[root@localhost ~]# cat c.txt
1    a
2    b
3    c
4    d
5    e

本文最后更新时间 2023-04-02
文章链接地址:
https://me.jinchuang.org/archives/80.html
本站文章除注明[转载|引用],均为本站原创内容,转载前请注明出处
统计文本中每个字符出现的次数
Nali 离线ip数据库文件
苹果CMS v10内容管理系统搭建
bin/ld: Dwarf Error: found dwarf version '5', this reader only handles version 2, 3 and 4 information.

Microsoft Office for Mac 2016

iptables 拒绝IP访问

我要留言