how hoop "too files" problem operative bash?
i times have work directories containing hundreds thousands files, doing calm matching, replacing on. i customary lane of, say
grep foo *
i too files blunder message, i finish adult doing
for i *; grep foo $i; done
or
find ../path/ | xargs -i{} grep foo "{}"
but reduction optimal (create new grep slight per any file).
this looks some-more discount distance arguments programs receive, since * loop works alright. but, any case, what's repremand proceed hoop this?
ps: don't tell me grep -r instead, i know that, i'm pondering collection have recursive option.
Comments
Post a Comment