摘要: 001、 针对普通用户 [liujiaxin01@pc1 ~]$ ls test01 [liujiaxin01@pc1 ~]$ pwd ## 普通用户家目录 /home/liujiaxin01 [liujiaxin01@pc1 ~]$ tree ## 重要文件所在目录 . └── test01 └─ 阅读全文
posted @ 2023-09-13 22:49 小鲨鱼2018 阅读(97) 评论(0) 推荐(0) 编辑
摘要: 001、方法1 [root@pc1 test01]# ls a.txt b.txt [root@pc1 test01]# cat a.txt 1 2 3 4 5 6 [root@pc1 test01]# cat b.txt a b c d e f [root@pc1 test01]# paste - 阅读全文
posted @ 2023-09-13 18:04 小鲨鱼2018 阅读(194) 评论(0) 推荐(1) 编辑
摘要: 001、 提取两个文件中指定列相同的行 [root@pc1 test01]# ls file1 file2 [root@pc1 test01]# cat file1 a rs1 b rs2 c rs4 [root@pc1 test01]# cat file2 a 0.170721 -1.82031 阅读全文
posted @ 2023-09-13 17:36 小鲨鱼2018 阅读(467) 评论(0) 推荐(0) 编辑
摘要: 001、 awk [root@pc1 test02]# ls a.txt [root@pc1 test02]# cat a.txt a ii b kk a jj c yy b 77 e tt [root@pc1 test02]# awk '!ay[$1]++' a.txt a ii b kk c y 阅读全文
posted @ 2023-09-13 11:37 小鲨鱼2018 阅读(337) 评论(0) 推荐(0) 编辑