grep 搜多行匹配多个字符串

 

grep -E  "Action调用接口发生异|WS统计接口返回结果:null" app-ncng.log

 

[test@TEST007 log]$ grep -E  "Action调用接口发生异|WS统计接口返回结果:null" app-ncng.log
09:44:21,838 ERROR [com.mc.action.Action10090] (http--172.32.51.7-8406-3) Action调用接口发生异常:请求参数不全
09:44:21,839 INFO  [com.mc.action.Action10021] (http--172.32.51.7-8406-3) WS统计接口返回结果:null
10:25:40,735 ERROR [com.mc.action.Action10090] (http--172.32.51.7-8406-3) Action调用接口发生异常:请求参数不全
10:25:40,736 INFO  [com.mc.action.Action10021] (http--172.32.51.7-8406-3) WS统计接口返回结果:null
10:26:06,401 ERROR [com.mc.action.Action10090] (http--172.32.51.7-8406-4) Action调用接口发生异常:请求参数不全
10:26:06,402 INFO  [com.mc.action.Action10021] (http--172.32.51.7-8406-4) WS统计接口返回结果:null
10:42:03,967 ERROR [com.mc.action.Action10090] (http--172.32.51.7-8406-1) Action调用接口发生异常:请求参数不全
10:42:03,967 INFO  [com.mc.action.Action10021] (http--172.32.51.7-8406-1) WS统计接口返回结果:null
10:45:09,131 ERROR [com.mc.action.Action10090] (http--172.32.51.7-8406-2) Action调用接口发生异常:请求参数不全
10:45:09,132 INFO  [com.mc.action.Action10021] (http--172.32.51.7-8406-2) WS统计接口返回结果:null
10:49:28,497 ERROR [com.mc.action.Action10090] (http--172.32.51.7-8406-2) Action调用接口发生异常:请求参数不全
10:49:28,497 INFO  [com.mc.action.Action10021] (http--172.32.51.7-8406-2) WS统计接口返回结果:null
10:52:33,128 ERROR [com.mc.action.Action10090] (http--172.32.51.7-8406-2) Action调用接口发生异常:请求参数不全
10:52:33,129 INFO  [com.mc.action.Action10021] (http--172.32.51.7-8406-2) WS统计接口返回结果:null
11:00:36,759 ERROR [com.mc.action.Action10090] (http--172.32.51.7-8406-4) Action调用接口发生异常:请求参数不全
11:00:36,760 INFO  [com.mc.action.Action10021] (http--172.32.51.7-8406-4) WS统计接口返回结果:null
11:10:45,228 ERROR [com.mc.action.Action10090] (http--172.32.51.7-8406-2) Action调用接口发生异常:请求参数不全
11:10:45,229 INFO  [com.mc.action.Action10021] (http--172.32.51.7-8406-2) WS统计接口返回结果:null
11:11:05,754 ERROR [com.mc.action.Action10090] (http--172.32.51.7-8406-4) Action调用接口发生异常:请求参数不全
11:11:05,755 INFO  [com.mc.action.Action10021] (http--172.32.51.7-8406-4) WS统计接口返回结果:null
11:12:42,992 ERROR [com.mc.action.Action10090] (http--172.32.51.7-8406-1) Action调用接口发生异常:请求参数不全
11:12:42,992 INFO  [com.mc.action.Action10021] (http--172.32.51.7-8406-1) WS统计接口返回结果:null
13:57:52,474 ERROR [com.mc.action.Action10090] (http--172.32.51.7-8406-3) Action调用接口发生异常:请求参数不全
13:57:52,475 INFO  [com.mc.action.Action10021] (http--172.32.51.7-8406-3) WS统计接口返回结果:null
14:06:55,332 ERROR [com.mc.action.Action10090] (http--172.32.51.7-8406-3) Action调用接口发生异常:请求参数不全
14:06:55,333 INFO  [com.mc.action.Action10021] (http--172.32.51.7-8406-3) WS统计接口返回结果:null
14:12:53,170 ERROR [com.mc.action.Action10090] (http--172.32.51.7-8406-4) Action调用接口发生异常:请求参数不全
14:12:53,171 INFO  [com.mc.action.Action10021] (http--172.32.51.7-8406-4) WS统计接口返回结果:null

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值