相关疑难解决方法(0)

有没有更简单的方法来grep目录下的所有文件?

当我想在整个树中搜索某些内容时,我使用

find . -type f -print0 | xargs -0 grep <search_string>
Run Code Online (Sandbox Code Playgroud)

在性能或简洁方面有没有更好的方法来做到这一点?

grep find

21
推荐指数
4
解决办法
5743
查看次数

标签 统计

find ×1

grep ×1