[Gooooooooood] http://www.runoob.com/linux/linux-comm-awk.html
-
awk如何打印出除了第一列以外的其他列 ?
from: https://blog.csdn.net/qiudakun/article/details/6266892awk 'sub($1,"")'
or
awk '{$1="";print}'
-
regular expression matching
# ok # ~ 表示模式开始。// 中是模式 awk '$4 ~ /opensnoop/ {print $4}' xy-filter.sh-20181030 # verbose awk '$4 !~ /opensnoop/ {print $4}' xy-filter.sh-20181030 # regular awk '$4 ~ /opensnoop|awk|中/ {print $4}' xy-filter.sh-20181030
final
awk '$5 ~ /\/dev\/|\/proc\/|\/sys\// {print}' opensnoop.log-20181030 | sudo tee test
文本如何去重?uniq awk
From: https://blog.csdn.net/u013176681/article/details/77540543
网友评论