2 ms·
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
by howeyc 2y ago
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.