grep-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: grep does not find some lines


From: Paul Eggert
Subject: Re: grep does not find some lines
Date: Tue, 11 Jan 2022 09:26:20 -0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.3.1

On 1/11/22 05:45, andreas graeper via wrote:
when i `grep ' AT ' x.exp` i miss 8 lines.

That's because some of the lines contain binary data. Recent versions of 'grep' output the diagnostic "grep: x.exp: binary file matches" to stderr and do not output the binary data.

You can use 'grep -a' to treat binary data as text. You might also try setting LC_ALL=C in the environment to get better performance (which in your particular case would have also fixed the problem).



reply via email to

[Prev in Thread] Current Thread [Next in Thread]