一、sed查看某时间段到现在的系统日志
sed -n '/# Time: 180925/,$p' slow.log > slow-9.25.log
二、sed 截选时间段日志
sed -n '/起始时间/,/结束时间/p' show.log > show-9.25.log
本文链接:https://jeff.xin/post/106.html
--EOF--
发表于 2018-09-25 ,并被添加「 Linux 」标签 。
IT技术笔记
一、sed查看某时间段到现在的系统日志
sed -n '/# Time: 180925/,$p' slow.log > slow-9.25.log
二、sed 截选时间段日志
sed -n '/起始时间/,/结束时间/p' show.log > show-9.25.log
本文链接:https://jeff.xin/post/106.html
--EOF--
发表于 2018-09-25 ,并被添加「 Linux 」标签 。
Comments
发表评论:
◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。