不需要tail命令,直接 grep '2018-04-22 12:3[2-9]' tesl.log;

这就是查询指定文件的2018-04-22 12点32分到39分的日志

posted on 2019-04-22 16:17  郭氏小帅  阅读(2462)  评论(0)    收藏  举报