sed 切割日志文件

sed -n '/2020-04-09T16:48:10.906/,/2020-04-09T16:48:11.070/p' 20200409.log >a.txt

sed -n '/Mar 29 04:01:01/,/Mar 29 05:01:01/p' /var/log/messages > b.log

 

posted @ 2020-04-09 22:22  youxiaoxian  阅读(575)  评论(0编辑  收藏  举报