Re: I think I've asked before, but how do I get rid of the false positives for a binary file in a -r search?
On Thu 21 Jul 2022 at 15:32:41 (-0400), gene heskett wrote:
>
> I'm looking for the source file in ".scad" format, which it pretty std
> text, of a module name
> that is likely in a file with a different parent filename, using two
> greps, piping a -r .scad|grep name
> in file, but I'm getting 5000 lines of binary file matches when it doesn't.
>
> grep -r .scad|grep thrust_brace
>
> Is there an option to shut that binary trash talk off?
You have, and man grep tells you to use -I.
Cheers,
David.
Reply to: