=====生成邮件发送人名单===================
#cat mail.txt
abc@163.com
edf@163.com
hij@163.com
#awk 'BEGIN{ORS=";"} {print $1}' mail.txt
abc@163.com;edf@163.com;hij@163.com
==============按某列求和==================
#cat test.txt
abc 123
cdf 324
def 232
#awk '{sum += $2};END{print sum}' test.txt
679
阅读(1839) | 评论(0) | 转发(0) |