4 ms·
Piping `find` through `grep` like that is inefficient, find has robust filtering capabilities you can use without the overhead of spawning subshells with pipes
by oxygen_crisis 3y ago
Piping `find` through `grep` like that is inefficient, find has robust filtering capabilities you can use without the overhead of spawning subshells with pipes and calling another binary like grep.
find . -type f -not -path '*/.git/*' -name "*$1*"
- ramses0 3y agoHrm... `f foo` vs. `.............................................foo..`