Find files while excluding a path
Lists files matching a name pattern but skips everything whose path matches the excluded pattern.
find . -name '*.py' -not -path '*/node_modules/*'Edit the highlighted values, then copy. They are inserted as typed, without shell escaping.
Report an issue (opens in a new tab) wrong command, wrong danger level, typo… (on GitHub)
Adapted from tldr-pages (common/find.md), licensed under CC BY 4.0.