Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要做这样的事情
grep -R 'MyString' dir/
但不是在目录中搜索,我想搜索特定组拥有的所有文件。这可能吗?
使用如下所示的-group选项:find
-group
find
find mydir -group mygroup -type f -print0 | xargs -0 grep MyString