Comment

Comment by eesmith

I'm curious how the example

  shelly 'find "class" in files in this directory without the .venv dir'
is interpreted. I'm assuming something like:

  grep -l -R --exclude-dir .venv class
and possibly with the "--null" option, but I can also see how using "find" suggests the user is thinking of the find command, so wants filenames containing the substring "class" but not in the .venv directory. My first attempt at that is:

  find . -name '*class*' | grep -Fv '/.venv/'
parent eesmith 2 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton