Sujet : Re: GNU grep and files with nulls
De : jmccue (at) *nospam* magnetar.jmcunx.com (John McCue)
Groupes : comp.unix.shellDate : 12. Apr 2025, 18:45:03
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vte8qv$10m5h$1@dont-email.me>
References : 1
User-Agent : tin/2.6.1-20211226 ("Convalmore") (Linux/5.15.161 (x86_64))
Kenny McCormack <
gazelle@shell.xmission.com> wrote:
So, I have a file that contains a line like:
foo.bar.bletch.one.two
where the dots represent null (\0) characters.
I want to be able to grep this line, using this command:
grep foo.bar.bletch.one.two file
Did you try using argument '--binary-files=' ?
Detail in the GNU grep man page :)
<snip>
-- [t]csh(1) - "An elegant shell, for a more... civilized age." - Paraphrasing Star Wars