获取tomcat日志文件中的一段时间的日志

来源:互联网 发布:下载app客户端软件 编辑:程序博客网 时间:2024/06/17 15:16

随笔,就一条命令


sed -n '/2017:00:00:/,/2017:01:00:/p' localhost_access_logtime.2017-11-20.txt >test01.log


sed -n '/起始时间/,/结束时间/p' 日志文件名 >test01.log

原创粉丝点击