Comment Comment by howeyc if you want file names matching a pattern, no need for grep:find . -name '*.py' -iname '*pattern*'for filenames that have content matching pattern, no need for find:grep -r --include '*.py' -l -i pattern .no need for pipes, xargs, etc. parent howeyc 1 year ago
find . -name '*.py' -iname '*pattern*'
for filenames that have content matching pattern, no need for find:
grep -r --include '*.py' -l -i pattern .
no need for pipes, xargs, etc.