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

No comments yet

Be the first to share your thoughts.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton