linux 匹配日志中ipv6地址

grep -o -E '\b([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}\b'  logfile

  

posted @ 2023-12-13 10:42  Armored-forces  阅读(57)  评论(0)    收藏  举报