Get the App
SLTechnology News&Howtos  ›  Servers  › 

Little knowledge of sed

Shulou Source: shulou.com Published: 2022-06-02 11:44:10 09月30日 Update

[dd logs] $tail-f catalina.out [DEBUG] [New I client worker # 1-2] 2017-07-04T15:00:33.461+0800 com.alibaba.dubbo.remoting.exchange.support.header.HeartbeatHandler:received:82 > [DUBBO] Receive heartbeat response in thread New I client worker O client worker # 1-2, dubbo version: 2.5.3 Current host: 172.16.8.3 [DEBUG] [localhost-startStop-1-SendThread (vt28:2183)] 2017-07-04T15:00:34.790+0800 org.apache.zookeeper.ClientCnxn:readResponse:742 > Got ping response for sessionid: 0x65cee405c9e004d after 0ms [DEBUG] [New client worker # 1-3] 2017-07-04T15:00:35.329+0800com.alibaba.dubbo.remoting.exchange.support.header.HeartbeatHandler:received:72 > [DUBBO] Received heartbeat from remote channel / 172.16.8.22 localhost-startStop-1-SendThread 18099 Cause: The channel has no data-transmission exceeds a heartbeat period: 60000ms, dubbo version: 2.5.3, current host: 172.16.8.3 [DEBUG] [New client worker O client worker # 1-3] 2017-07-04T15:00:35.330+0800 com.alibaba.dubbo.remoting.exchange.support.header.HeartbeatHandler:received:72 > [DUBBO] Received heartbeat from remote channel / 172.16.8.22 virtual 18099, cause: The channel has no data-transmission exceeds a heartbeat period: 60000ms, dubbo version: 2.5.3 Current host: 172.16.8.3 [DEBUG] [localhost-startStop-1-SendThread (vt27:2183)] 2017-07-04T15:00:43.100+0800 org.apache.zookeeper.ClientCnxn:readResponse:742 > Got ping response for sessionid: 0x55cee4043800064 after 0ms [DEBUG] [localhost-startStop-1-SendThread (vt28:2183)] 2017-07-04T15:00:44.800+0800 org.apache.zookeeper.ClientCnxn:readResponse:742 > Got ping response for sessionid: 0x65cee405c9e004d after 0ms [DEBUG] [localhost-startStop-1-SendThread (vt27:2183)] 2017-07-04T15:00:53.109+0800 org.apache.zookeeper.ClientCnxn:readResponse:742 > Got ping response for sessionid: 0x55cee4043800064 after 0ms [DEBUG] [localhost-startStop-1-SendThread (vt28:2183)] 2017-07-04T15:00:54.807+0800 org.apache.zookeeper.ClientCnxn:readResponse:742 > Got ping response for sessionid: 0x65cee405c9e004d after 0ms [DEBUG] [localhost-startStop-1-SendThread (vt27:2183)] 2017-07-04T15:01:03.116+0800 org.apache.zookeeper .ClientCnxn: readResponse:742 > Got ping response for sessionid: 0x55cee4043800064 after 0ms [DEBUG] [localhost-startStop-1-SendThread (vt28:2183)] 2017-07-04T15:01:04.816+0800 org.apache.zookeeper.ClientCnxn:readResponse:742 > Got ping response for sessionid: 0x65cee405c9e004d after 0ms ^ C

[dd logs] $sed-n'/ 2017-07-04T15 purge 00purl 43.100q0800Charger Legend 2017-07-04T15hand 01purl 04.8160800gamma p'catalina.out > / tmp/log.txt

[dd logs] $cat / tmp/log.txt [DEBUG] [localhost-startStop-1-SendThread (vt27:2183)] 2017-07-04T15:00:43.100+0800 org.apache.zookeeper.ClientCnxn:readResponse:742 > Got ping response for sessionid: 0x55cee4043800064 after 0ms [DEBUG] [localhost-startStop-1-SendThread (vt28:2183)] 2017-07-04T15:00:44.800+0800 org.apache.zookeeper.ClientCnxn:readResponse:742 > Got ping response for sessionid: 0x65cee405c9e004d after 0ms [DEBUG] [localhost-startStop-1 -SendThread (vt27:2183)] 2017-07-04T15:00:53.109+0800 org.apache.zookeeper.ClientCnxn:readResponse:742 > Got ping response for sessionid: 0x55cee4043800064 after 0ms [DEBUG] [localhost-startStop-1-SendThread (vt28:2183)] 2017-07-04T15:00:54.807+0800 org.apache.zookeeper.ClientCnxn:readResponse:742 > Got ping response for sessionid: 0x65cee405c9e004d after 0ms [DEBUG] [localhost-startStop-1-SendThread (vt27:2183)] 2017-07-04T15:01:03.116+0800 org.apache .zookeeper.ClientCnxn: readResponse:742 > Got ping response for sessionid: 0x55cee4043800064 after 0ms [DEBUG] [localhost-startStop-1-SendThread (vt28:2183)] 2017-07-04T15:01:04.816+0800 org.apache.zookeeper.ClientCnxn:readResponse:742 > Got ping response for sessionid: 0x65cee405c9e004d after 0ms [cloud@vt3 logs] $

Tags: Knowledge Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Xiaomi Linux Microsoft Apple NVidia