截取某段时间内的日志

这个是截取access.log 21/Jul/2019:00:00:00 - 22/Jul/2019:00:00:04 的日志到access.log-2019-07-21

sed -n '/21\/Jul\/2019:00:00:00/,/22\/Jul\/2019:00:00:04/p' access.log > access.log-2019-07-21

 

posted @ 2019-07-29 14:57  hoey94  阅读(313)  评论(0编辑  收藏  举报