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

随笔,就一条命令


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


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

猜你喜欢

转载自blog.csdn.net/embrace99999/article/details/78580493
今日推荐