摘要: 001、 a、总变量传入 [root@PC1 test1]# ls ## 测试文件及目录 a.txt b.txt c.csv test [root@PC1 test1]# tree ## 查看目录结构 . ├── a.txt ├── b.txt ├── c.csv └── test 1 direct 阅读全文
posted @ 2024-02-09 21:15 小鲨鱼2018 阅读(120) 评论(0) 推荐(0)
摘要: 001、 [root@PC1 test]# ls a.txt b.txt c.txt x.ped y.ped z.ped [root@PC1 test]# du -sh * ## 显示每个文件的大小 30M a.txt 60M b.txt 200M c.txt 20M x.ped 100M y.pe 阅读全文
posted @ 2024-02-09 18:37 小鲨鱼2018 阅读(28) 评论(0) 推荐(0)
摘要: 001、 Linux 中awk命令批量提取多个非连续的行 [root@PC1 test]# ls a.txt lines.list [root@PC1 test]# cat a.txt ## 测试文件 eree fff 1 saaf eee 2 xxxe kkk 3 zzzz mmm 4 2222 阅读全文
posted @ 2024-02-09 12:26 小鲨鱼2018 阅读(79) 评论(0) 推荐(0)
摘要: Linux 中 如何将文本中最后一个指定的字符串替换为指定的内容 阅读全文
posted @ 2024-02-09 12:24 小鲨鱼2018 阅读(66) 评论(0) 推荐(0)
摘要: 001、纯数字 [root@PC1 test1]# ls a.txt [root@PC1 test1]# cat a.txt ## 测试文本 sdf324 7fy323td34 342 fff 435 tih 6334 s234dfg65 [root@PC1 test1]# grep "^[0-9] 阅读全文
posted @ 2024-02-09 12:24 小鲨鱼2018 阅读(173) 评论(0) 推荐(0)