zl程序教程

您现在的位置是:首页 >  系统

当前栏目

linux截取某段时间内的日志详解程序员

Linux日志程序员 详解 截取 段时间
2023-06-13 09:20:06 时间

日志格式如下:
这里写图片描述

sed -n /2018-08-20 12:00:[0-9][0-9]/,/2018-08-21 09:40:[0-9][0-9]/p output.log output1.log

截取后放到output1.log

原创文章,作者:Maggie-Hunter,如若转载,请注明出处:https://blog.ytso.com/3058.html

服务器部署程序员系统优化网站设置运维