Re: GNU grep and files with nulls

Liste des GroupesRevenir à cu shell 
Sujet : Re: GNU grep and files with nulls
De : 643-408-1753 (at) *nospam* kylheku.com (Kaz Kylheku)
Groupes : comp.unix.shell
Date : 12. Apr 2025, 19:03:40
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <20250412105946.299@kylheku.com>
References : 1 2
User-Agent : slrn/pre1.0.4-9 (Linux)
On 2025-04-12, John McCue <jmccue@magnetar.jmcunx.com> wrote:
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 :)

I just remember the -a shortcut, which is the same
as --binary-files=text.  All the other --binary-files
options are about /not/ grepping through binary files,
so that useful one gets the one letter shortcut.

We can probably mnemonize it as "all": "grep
through all the darned files, including binaries".

--
TXR Programming Language: http://nongnu.org/txr
Cygnal: Cygwin Native Application Library: http://kylheku.com/cygnal
Mastodon: @Kazinator@mstdn.ca

Date Sujet#  Auteur
12 Apr 25 * GNU grep and files with nulls3Kenny McCormack
12 Apr 25 `* Re: GNU grep and files with nulls2John McCue
12 Apr 25  `- Re: GNU grep and files with nulls1Kaz Kylheku

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal