摘要:
netstat -ant | awk 'NR>2{status[$NF]++}END{for(s in status) print s,status[s]}'awk '{num[$1]+=$2}END{for(a in num) print a,num[a]}' 2.txt 阅读全文
posted @ 2017-01-11 22:27
howhy
阅读(191)
评论(0)
推荐(0)
摘要:
使用grep实现精确过滤的五种方法 (1)当被过滤的内容占据一行时 [root@MySQL scripts]# cat oldboy.log 200 0200 2000 [root@MySQL scripts]# grep "\b200\b" oldboy.log 200 #<==正则按单词匹配 [ 阅读全文
posted @ 2017-01-11 22:26
howhy
阅读(2571)
评论(0)
推荐(0)

浙公网安备 33010602011771号