Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 1 Nov 2019 22:01:06 +1100
From:      MJ <mafsys1234@gmail.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: grep for ascii nul
Message-ID:  <4f7fed64-df67-f60b-7a53-fd1e2f1be592@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

On 1/11/2019 8:27 pm, Victor Sudakov 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.
>
Well you could have been looking at something like: ls -Fl > filelist; grep '\0' filelist

Who knows?

Anyway, you've clarified now.

MarkJ



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4f7fed64-df67-f60b-7a53-fd1e2f1be592>