grep '字符串' 文件名

2019-01-30  本文已影响0人  沉默羔羊121

tail -f 文件名 |grep '字符串'

查看日志文件
grep '字符串' 文件名 (避免使用cat打开大文件)

上一篇 下一篇

猜你喜欢

热点阅读