sed小知识

[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]$

本文标题:sed小知识
文章URL:https://www.cdcxhl.com/article16/pshjgg.html

成都网站建设公司_创新互联,为您提供自适应网站手机网站建设外贸建站网站策划营销型网站建设

广告

声明:本网站发布的内容(图片、视频和文字)以用户投稿、用户转载内容为主,如果涉及侵权请尽快告知,我们将会在第一时间删除。文章观点不代表本网站立场,如需处理请联系客服。电话:028-86922220;邮箱:631063699@qq.com。内容未经允许不得转载,或转载时需注明来源: 创新互联

微信小程序开发