linux 文本信息查询grep 2026/8/14 17:51:05 拓冰建站 浏览量 1、grep grep "keyword" /path/to/logfile 获取查询结果最后一行 grep "runs/detect/train" test4.log | tail -n 1