摘要:
001、 [root@localhost test]# ls a.txt [root@localhost test]# cat a.txt ## 测试文本 01 02 03 04 05 06 07 08 09 10 11 12 [root@localhost test]# sed -n '1,${p 阅读全文
posted @ 2025-12-25 23:20
小鲨鱼2018
阅读(4)
评论(0)
推荐(0)
摘要:
001、利用awk实现 [root@localhost test]# ls a.txt [root@localhost test]# cat a.txt ## 生成一个测试文本 01 02 03 04 05 06 07 08 09 10 11 12 [root@localhost test]# aw 阅读全文
posted @ 2025-12-25 23:09
小鲨鱼2018
阅读(4)
评论(0)
推荐(0)
摘要:
Linux 中 如何将文本每行中最后一个出现的指定字符替换为特定的字符 001、 [root@PC1 test]# ls a.txt [root@PC1 test]# cat a.txt ## 测试数据 01 02k 03k k04 05 06 07 08 09k 10 11k 12 13 14k 阅读全文
posted @ 2025-12-25 17:23
小鲨鱼2018
阅读(3)
评论(0)
推荐(0)
摘要:
Linux 中 sed命令的反向选择 001、 [root@PC1 test]# ls a.txt [root@PC1 test]# cat a.txt ## 测试文本 01 02_mn 03 04 05 06 07 08 09 10 11_abc 12 13 14 15_abc 16 17 18_ 阅读全文
posted @ 2025-12-25 14:50
小鲨鱼2018
阅读(4)
评论(0)
推荐(0)

浙公网安备 33010602011771号