greg で -l フラグを使用してファイルのリストを取得するのはかなり一般的です。リストを出力するだけでなく、見つかったすべてのファイルをすぐに崇高に開く方法が大好きです(何らかの方法で subl コマンドを使用すると思います)。
私の現在のワークフロー:
grep --include=*.php -R -l "tribe_events_event_classes" .
どの出力:
./plugins/events-calendar-pro/views/day/loop.php
./plugins/events-calendar-pro/views/map/loop.php
./plugins/events-calendar-pro/views/photo/loop.php
./plugins/events-calendar-pro/views/widgets/mini-calendar/list.php
./plugins/the-events-calendar/lib/tribe-template-factory.class.php
./plugins/the-events-calendar/public/template-tags/general.php
./plugins/the-events-calendar/views/list/loop.php
./plugins/the-events-calendar/views/month/single-event.php
./themes/roots/tribe-events/day/loop.php
次に、通常、ファイルを1つずつコピーして貼り付けます。
subl ./plugins/events-calendar-pro/views/day/loop.php
subl ./plugins/events-calendar-pro/views/map/loop.php
etc...
これを行うには、ここがより効率的な方法でなければならないことを私は知っています。