分析 2020-12-27.log, 匹配包含 删除用户信息收到 的行, 并以 customerId: 分割后输出第 2 列, 使用 | 继续分割, 以 _ 分割, 输出第 1 列
awk -F'customerId:' '{if($0~"删除用户信息收到") print $2}' 2020-12-27.log /bin/bash | awk -F'_' '{print $1}'
-F 是指以什么分割, 如果是打印整行, 则去掉 -F'customerId:' 这段, print 后什么都不写即可