求和
[root@114 ~]# cat data.log
1
2
3
6
7
[root@114 ~]# awk '{a+=$1}END{print a}' data.log
19
平均值
[root@114 ~]# awk '{a+=$1}END{print a/NR}' data.log
3.8
大值
awk 'BEGIN{max=-1111111111}{if($2>max)max=$2}END{print max}' log.data
7
最小值
[root@112 ~]# awk 'BEGIN{max=1111111111}{if($2
awk '{print $2}' log.data |python -c "import sys;nums=[int(i) for i in sys.stdin.readlines()];print max(nums) "
awk '{print $2}' log.data |python -c "import sys;nums=[int(i) for i in sys.stdin.readlines()];print min(nums) "
awk '{print $2}' log.data |python -c "import sys;nums=[int(i) for i in sys.stdin.readlines()];print sum(nums)/len(nums) "
awk '{print $2}' log.data |python -c "import sys;nums=[int(i) for i in sys.stdin.readlines()];print sum(nums)"
售后响应及时
7×24小时客服热线数据备份
更安全、更高效、更稳定价格公道精准
项目经理精准报价不弄虚作假合作无风险
重合同讲信誉,无效全额退款