Linux 通过 sed 命令过滤指定日期的日志文件并输出到新文件

sed -n  '/2023-10-18T09:00:00/,/2023-10-18 12:00:00/p'  mysql_slow.log > out.log

你可能感兴趣的:(笔记)