## 关键字搜索并排序 ```bash grep -h '关键字' *.log | sort ``` ## 打印一个时间范围的片段 ```bash sed -n '/2026-03-26 10:15/, /2026-03-26 10:20/p' xxx.log ```