This topic created in 3527 days ago, the information mentioned may be changed or developed.
如题所示,此目录里面有非常多的子目录和文件,比如说我想遍历出文件内容有 aaa 的所有文件路径,有什么好的方法吗?
3 replies • 2017-03-19 09:40:40 +08:00
 |
|
grep -r "aaa" ./*
|
 |
|
find /xxx/xx -type f |xargs grep -n "aaa" -n 输出行号
|
 |
|
ic3zMar 19, 2017 via Android
3
ag 命令
|