摘要:
1、测试数据 [root@centos7 test]# cat a.txt 4 8 2 6 2、直接求和 [root@centos7 test]# awk '{sum += $1}END{print sum}' a.txt 20 3、累积求和 [root@centos7 test]# cat a.t 阅读全文
posted @ 2021-06-25 00:51
小鲨鱼2018
阅读(3762)
评论(0)
推荐(0)
摘要:
1、创建测试文件: [root@centos7 test]# touch {a..f}.txt [root@centos7 test]# ls a.txt b.txt c.txt d.txt e.txt f.txt 2、删除b.txt文件以外的所有文件 method1: [root@centos7 阅读全文
posted @ 2021-06-25 00:06
小鲨鱼2018
阅读(439)
评论(0)
推荐(0)