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小知识
分享链接:http://bzwzjz.com/article/pshjgg.html

其他资讯

Copyright © 2007-2020 广东宝晨空调科技有限公司 All Rights Reserved 粤ICP备2022107769号
友情链接: 成都网站建设 H5网站制作 宜宾网站设计 公司网站建设 成都网站建设公司 成都企业网站设计 重庆手机网站建设 商城网站建设 古蔺网站建设 成都企业网站建设 手机网站设计 成都商城网站制作 手机网站制作设计 手机网站建设 营销网站建设 成都响应式网站建设 手机网站制作 网站建设 定制网站制作 重庆企业网站建设 成都企业网站建设公司 响应式网站设计