摘要: 由于文本的特殊性,IP字段可能并不是在特定的字段中。 借助awk的match()函数进行匹配截取 awk re interval '($0 ~ "xxx"){match($0,/([0 9]{1,3}\.){3}[0 9]{1,3}/,a);print a[0]}' xxxx.txt match函数 阅读全文
posted @ 2018-03-08 14:46 wshenJin 阅读(719) 评论(0) 推荐(0) 编辑