2 ms·
I use something along the lines of find . -iname '.*' -prune -o -iname '*.foo' -exec grep needle {} + I don't want to have to learn 10 different command s
by aidenn0 9y ago
I use something along the lines of
find . -iname '.*' -prune -o -iname '*.foo' -exec grep needle {} +
I don't want to have to learn 10 different command syntaxes for walking directory trees, so find works well. The "+" terminator of find's exec is similar to xargs, but preserves the flexibility of find's exec.