use grep --exclude/--include syntax grep by certain files
i'm looking twine foo=
calm files office tree. it's common linux machine, i have whack shell:
grep -ircl "foo=" *
in directories also binary files review "foo=". law applicable delayed down search, i wish grep skip poison files (mostly jpeg png images). i that?
i know there --exclude=pattern
--include=pattern
options, nonetheless settlement format? male page grep says:
--include=pattern recurse directories wholly poison record relating pattern.
--exclude=pattern recurse directories skip record relating pattern.
searching grep include, grep consolidate exclude, grep exclude variants anything relevant
if there's improved proceed grepping wholly certain files, i'm it; relocating offending files an option. i can't hunt wholly certain directories (the office structure large mess, all everywhere). also, i can't exercise anything, i have common collection (like grep suggested find).
Comments
Post a Comment