From owner-freebsd-questions@freebsd.org Fri Nov 1 11:02:18 2019 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 0D09C159600 for ; Fri, 1 Nov 2019 11:02:18 +0000 (UTC) (envelope-from mafsys1234@gmail.com) Received: from mail-pl1-x629.google.com (mail-pl1-x629.google.com [IPv6:2607:f8b0:4864:20::629]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 474K5h52PSz45F2 for ; Fri, 1 Nov 2019 11:02:16 +0000 (UTC) (envelope-from mafsys1234@gmail.com) Received: by mail-pl1-x629.google.com with SMTP id k7so4220224pll.1 for ; Fri, 01 Nov 2019 04:02:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=04jPIK9mW62hR33Q8AqiyRb/qWj1WZKgWckvaHcR9FY=; b=SNgFIbWoOM5C/CXR+ZimnLBvGp+4+FkghRCC992oc+q/kng4nW16emQNKlbrnNb3mL gDHgJZt270grZhDYEPuZfDObtFkCNwYcNO293djVC2V0bGy+VojYYylHwaoGbhLotTi8 GIk4psvxh4tXPh3D+MA7nGEu3CqgOP2znpw32B7ClF4tKSmVTPASJ+1OCa2tQt4z/fg4 33YeMc5SzWpwXuAlB2vpG1Ggs+y6QfmasRPzDdDhi2GkTEzS7FMI4xyqpEL7xLbpAGJk mDPuCMS3PjYGiRYJYbkafyNPmyO3Zsz+vGc98kWQpZ+v5ut+cojTFcO7LjOCye9icy1/ IF+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=04jPIK9mW62hR33Q8AqiyRb/qWj1WZKgWckvaHcR9FY=; b=AwyNTmh+W4tBcZIBSUw4PhlC1r1SZt1A22o+ohzUKhcGmsXcRmVaOqOkC6IL3qfBK1 KkTii4eZ9zan0aKJC0Vv689P3YxYcxhtukGKCpAG6OO2tsq/2tHRIzmnxrtLQopf1Uyp WExBEWhXTVNmNTWm7ABOTnvAkOvqDb5ppB+1E3F4HR5tHtVZgArrTQ5CjEysKVATbvl+ TmKiq0KtfD/uSBs441qNpYpdEUtcIVRrW9Eyfw1putmtix1vIOVUZy7SJFspAjw6EhgB bdz1QURzMFt4ZFLVwQFrYlL65VjHITxOULqbNiX2zUfqhsTcCif0+mhIBaDbWyTzcqQA kJlg== X-Gm-Message-State: APjAAAVyAo2MZYpgF1c0ZIxDlvK6mIGmPT+vo7+iv2BsYTiNlaZw+RYF Q3dVtkH0CmFhNCtLzKV0D/v6Cn6u X-Google-Smtp-Source: APXvYqzjcTDBdwqrTW1xoDK3IUmxHhGBUIvyF1HyS7KIlcPIHTOxBdINLftVLx1SjYdZmpEcXTXTFw== X-Received: by 2002:a17:902:bb84:: with SMTP id m4mr12053196pls.211.1572606134942; Fri, 01 Nov 2019 04:02:14 -0700 (PDT) Received: from [192.168.1.10] (C-59-101-231-119.bur.connect.net.au. [59.101.231.119]) by smtp.gmail.com with ESMTPSA id c1sm13718375pjc.23.2019.11.01.04.02.12 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 01 Nov 2019 04:02:14 -0700 (PDT) Subject: Re: grep for ascii nul To: freebsd-questions@freebsd.org References: <20191101024817.GA60134@admin.sibptus.ru> <2c08387c-425b-060d-4f9b-3443a3f6a18f@irk.ru> <20191101092716.GA67658@admin.sibptus.ru> From: MJ Message-ID: <4f7fed64-df67-f60b-7a53-fd1e2f1be592@gmail.com> Date: Fri, 1 Nov 2019 22:01:06 +1100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: <20191101092716.GA67658@admin.sibptus.ru> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-AU X-Rspamd-Queue-Id: 474K5h52PSz45F2 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=SNgFIbWo; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of mafsys1234@gmail.com designates 2607:f8b0:4864:20::629 as permitted sender) smtp.mailfrom=mafsys1234@gmail.com X-Spamd-Result: default: False [-3.00 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36:c]; FREEMAIL_FROM(0.00)[gmail.com]; TO_DN_NONE(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; RECEIVED_SPAMHAUS_PBL(0.00)[119.231.101.59.khpj7ygk5idzvmvt5x4ziurxhy.zen.dq.spamhaus.net : 127.0.0.10]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; MID_RHS_MATCH_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; IP_SCORE_FREEMAIL(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; IP_SCORE(0.00)[ip: (-9.16), ipnet: 2607:f8b0::/32(-2.38), asn: 15169(-2.04), country: US(-0.05)]; RCVD_IN_DNSWL_NONE(0.00)[9.2.6.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; RCVD_TLS_ALL(0.00)[] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Nov 2019 11:02:18 -0000 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