溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務(wù)條款》

sed小知識

發(fā)布時間:2020-07-24 06:21:24 來源:網(wǎng)絡(luò) 閱讀:775 作者:小小三郎1 欄目:建站服務(wù)器
[dd logs]$ tail -f catalina.out
[DEBUG] [New I/O 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/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 I/O client worker #1-3] 2017-07-04T15:00:35.329+0800
com.alibaba.dubbo.remoting.exchange.support.header.HeartbeatHandler:received:72>  [DUBBO] Received heartbeat from remote channel /172.16.8.22: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 I/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: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:00:43.100+0800/,/2017-07-04T15:01:04.816+0800/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]$


向AI問一下細節(jié)
推薦閱讀:
  1. shell小知識
  2. sed用法

免責聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點不代表本網(wǎng)站立場,如果涉及侵權(quán)請聯(lián)系站長郵箱:is@yisu.com進行舉報,并提供相關(guān)證據(jù),一經(jīng)查實,將立刻刪除涉嫌侵權(quán)內(nèi)容。

AI