4 ms·
In that case, you might as well just use grep -r, or its alias rgrep. And then remember that it supports --include=GLOB, --exclude=GLOB, and --exclude-dir=GLOB.
by layer8 2y ago
In that case, you might as well just use grep -r, or its alias rgrep. And then remember that it supports --include=GLOB, --exclude=GLOB, and --exclude-dir=GLOB.
(That’s GNU Grep, just to be clear: https://www.gnu.org/software/grep/manual/grep.html#File-and-Directory-Selection https://www.gnu.org/software/grep/manual/grep.html#File-and-...)
- yread 2y agoErr no? grep searches contents and op is looking in filenames
- ltbarcly3 2y agonope, not remotely the same thing
- deleted 2y ago[deleted]
- forinti 2y agoNot the same thing, but thank you. I've been using "find . -type f -exec grep -i {} /dev/null \;" without looking for a better solution and here it is.