Linux常用命令记录-grep
一,grep 字符串查询命令
1,指定文件路径查找字符串
示例: grep 'sca00000000011557684' /tmp/201811/1541493660-06.log
2,按文件夹递归查询字符串
示例:grep -r 'sca00000000011557684' /home/wwwroot/co/runtime/log/*
2022-03-14 12:09:37
Linux常用命令记录-grep
一,grep 字符串查询命令
1,指定文件路径查找字符串
示例: grep 'sca00000000011557684' /tmp/201811/1541493660-06.log
2,按文件夹递归查询字符串
示例:grep -r 'sca00000000011557684' /home/wwwroot/co/runtime/log/*