按分钟段查看日志:
grep '2019-03-02 11:4[1-2]' user-center.2019-03-02.log

按秒数段查看日志:
grep '2019-03-02 11:42:[01-59]' user-center.2019-03-02.log

按分钟段查看日志:
grep '2019-03-02 11:4[1-2]' user-center.2019-03-02.log
按秒数段查看日志:
grep '2019-03-02 11:42:[01-59]' user-center.2019-03-02.log
本文标题:LINUX 使用grep命令查看某个指定时间段的日志
本文链接:https://www.haomeiwen.com/subject/fyshvctx.html
网友评论