查询DDOS攻击IP列表 grep -i

[root@xsx ~]# netstat -an|grep -i syn_recv|awk '{print $5}'|awk -F\: '{print $1}'|sort|uniq -c
      1 149.56.41.159

 

grep -i (不区分大小写)

[root@bass Desktop]# grep -i "test" test.txt 
this is test
THIS IS TEST 1
this is TEST 2
this is test3
[root@bass Desktop]# grep  "test" test.txt 
this is test
this is test3

 

posted @ 2016-06-12 11:38  bass  阅读(1427)  评论(0编辑  收藏  举报