Linux根据时间范围查找日志命令示例

grep 时间范围 文件名称 例如: 1. grep ‘2019-09-09 10:24:3[1-7]’ test.log 查询test.log文件中2019-09-09 10:24:31到2019-09-09 10:24:37时间范围内的日志 2. grep ‘2019-09-09 10:2[0-6]’ test.log 查询test.log文件中2019-09-09 10:20到2019-09
相关文章
相关标签/搜索