Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 1 Nov 2019 10:47:07 +0100
From:      Michael Schuster <michaelsprivate@gmail.com>
To:        Victor Sudakov <vas@sibptus.ru>
Cc:        freeBSD Mailing List <freebsd-questions@freebsd.org>
Subject:   Re: grep for ascii nul
Message-ID:  <CADqw_gKrKQWCNvoP3GjzzD7cXMn4YzBao_v8_OpY9MEumRTSjw@mail.gmail.com>
In-Reply-To: <20191101092716.GA67658@admin.sibptus.ru>
References:  <20191101024817.GA60134@admin.sibptus.ru> <2c08387c-425b-060d-4f9b-3443a3f6a18f@irk.ru> <20191101092716.GA67658@admin.sibptus.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
https://stackoverflow.com/questions/4180081/binary-grep-on-linux/4180531#4180531

Does that help?

On Fri, Nov 1, 2019, 10:29 Victor Sudakov <vas@sibptus.ru> wrote:

> Sorry for the confusion. Of cource I meant files with ascii nul in file
> contents, inside. Because why would I have mentioned "grep"?
>
> I need to find files containing ascii null inside, and print their names
> to stdout.
>
>
> thor wrote:
> > There is NO such thing as filenames containing 0x00 inside the filename.
> > UNIX filenames are strings in C meaning and may contain any 8-bit values
> > except "/" which delimits the subdirectory names and 0x00 which marks
> > the end of filename string.
> >
> > At least it was so when I first met Unix, and I hope Bill Gates never
> > influenced Unix since this time.
> >
> > On 11/01/19 10:48, Victor Sudakov wrote:
> > > Dear Colleagues,
> > >
> > > How can I print the names of files containing ascii nul (\x0)? The
> > > FreeBSD "grep -l" does not seem to be able to do it.
> > >
> > > NB I don't need to delete the nul character with sed or tr, just need
> to
> > > find files containing it.
> > >
> >
> > _______________________________________________
> > freebsd-questions@freebsd.org mailing list
> > https://lists.freebsd.org/mailman/listinfo/freebsd-questions
> > To unsubscribe, send any mail to "
> freebsd-questions-unsubscribe@freebsd.org"
>
> --
> Victor Sudakov,  VAS4-RIPE, VAS47-RIPN
> 2:5005/49@fidonet http://vas.tomsk.ru/
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CADqw_gKrKQWCNvoP3GjzzD7cXMn4YzBao_v8_OpY9MEumRTSjw>