awk
案列1:统计访问网站ip次数
awk '{print $1}' /etc/httpd/logs/access_log |uniq -c
案列2:tr bc xargs 结合使用,将下面访问次数相加
awk '{print $1}' /te.txt |xargs|tr " " "+"|bc#数据2000 127.0.0.17833 127.0.0.128 127.0.0.112202 127.0.0.1273 127.0.0.1394 127.0.0.142 127.0.0.181 127.0.0.16 127.0.0.176 127.0.0.112 127.0.0.1
