find ./ -name "*.*" | xargs grep "需要找得东西"
tail -f a.log |grep 'test-code'
tail -f a.log |grep 'test-code' |grep 'CODE'
日志搜索技巧
本文介绍如何使用find和grep命令组合,高效地在文件系统中搜索特定字符串,以及如何实时监控日志文件中出现的关键信息。
find ./ -name "*.*" | xargs grep "需要找得东西"
tail -f a.log |grep 'test-code'
tail -f a.log |grep 'test-code' |grep 'CODE'
1063

被折叠的 条评论
为什么被折叠?