标签:style blog color 文件 ar div line size
匹配操作符(~) 用来在记录或者域内匹配正则表达式。如$ awk ‘$1 ~/^root/‘ test将显示test文件第一列中以root开头的行。
!~表示不匹配
#netstat -t | grep ‘8013‘ tcp 0 174 Tencent64:8013 Tencent64:59744 ESTABLISHED tcp 0 0 Tencent64:59744 Tencent64:8013 ESTABLISHED tcp 0 174 Tencent64:8013 10.129.145.114:40081 ESTABLISHED netstat -t | grep ‘8013‘|awk ‘{if($5!~/Tencent64:.*/) {print $0;}}‘ tcp 0 174 Tencent64:8013 10.129.145.114:40081 ESTABLISHED
标签:style blog color 文件 ar div line size
原文地址:http://www.cnblogs.com/notlate/p/3894602.html