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