From unknown Sat Jun 14 03:53:49 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#40943 <40943@debbugs.gnu.org> To: bug#40943 <40943@debbugs.gnu.org> Subject: Status: nl: add way to exclude matching lines from getting numbered! Reply-To: bug#40943 <40943@debbugs.gnu.org> Date: Sat, 14 Jun 2025 10:53:49 +0000 retitle 40943 nl: add way to exclude matching lines from getting numbered! reassign 40943 coreutils submitter 40943 =E7=A9=8D=E4=B8=B9=E5=B0=BC Dan Jacobson severity 40943 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Tue Apr 28 12:16:41 2020 Received: (at submit) by debbugs.gnu.org; 28 Apr 2020 16:16:41 +0000 Received: from localhost ([127.0.0.1]:41154 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jTSuU-0005KG-7w for submit@debbugs.gnu.org; Tue, 28 Apr 2020 12:16:41 -0400 Received: from lists.gnu.org ([209.51.188.17]:51931) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jTSuT-0005K9-6w for submit@debbugs.gnu.org; Tue, 28 Apr 2020 12:16:37 -0400 Received: from eggs.gnu.org ([209.51.188.92]:59570) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jTStE-0002w8-H0 for bug-coreutils@gnu.org; Tue, 28 Apr 2020 12:16:36 -0400 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FROM_EXCESS_BASE64, RCVD_IN_DNSWL_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jTSl8-00072z-I2 for bug-coreutils@gnu.org; Tue, 28 Apr 2020 12:10:20 -0400 Received: from blue.elm.relay.mailchannels.net ([23.83.212.20]:15031) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jTSl7-0006qY-GY for bug-coreutils@gnu.org; Tue, 28 Apr 2020 12:06:58 -0400 X-Sender-Id: dreamhost|x-authsender|jidanni@jidanni.org Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 53903540085 for ; Tue, 28 Apr 2020 16:06:54 +0000 (UTC) Received: from pdx1-sub0-mail-a45.g.dreamhost.com (100-96-21-20.trex.outbound.svc.cluster.local [100.96.21.20]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id AF4D054100C for ; Tue, 28 Apr 2020 16:06:53 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jidanni@jidanni.org Received: from pdx1-sub0-mail-a45.g.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.18.6); Tue, 28 Apr 2020 16:06:54 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jidanni@jidanni.org X-MailChannels-Auth-Id: dreamhost X-Wide-Eyed-Exultant: 256c641e077c3c48_1588090013923_3974848364 X-MC-Loop-Signature: 1588090013923:743768133 X-MC-Ingress-Time: 1588090013922 Received: from pdx1-sub0-mail-a45.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a45.g.dreamhost.com (Postfix) with ESMTP id 544A4802E8 for ; Tue, 28 Apr 2020 09:06:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=jidanni.org; h=from:to :subject:date:message-id:mime-version:content-type :content-transfer-encoding; s=jidanni.org; bh=HW11awXfe1JzAoIqLW O/JBZWZxU=; b=p5jzLYlqYdePNGKNfnVuCKFo1fCH/Hm2siwkw4r4qBvFa+9GJg G04ONYFMchMXewo10G/s1RQlXzgZR/R2w28FW4y5u5F68A0qzaJEh8fvIYWwQdBd Gd2A5NY03jWMOEH57b2tE/smHV856MYmHhp4mLFEYhbRVZWeiRruj1gfo= Received: from jidanni.org (220-140-12-125.dynamic-ip.hinet.net [220.140.12.125]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jidanni@jidanni.org) by pdx1-sub0-mail-a45.g.dreamhost.com (Postfix) with ESMTPSA id E84D9802E0 for ; Tue, 28 Apr 2020 09:06:52 -0700 (PDT) X-DH-BACKEND: pdx1-sub0-mail-a45 From: =?utf-8?B?56mN5Li55bC8?= Dan Jacobson To: bug-coreutils@gnu.org Subject: nl: add way to exclude matching lines from getting numbered! Date: Tue, 28 Apr 2020 23:02:31 +0800 Message-ID: <875zdjmz5k.8.fsf@jidanni.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: 0 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeduhedriedugdeliecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucggtfgfnhhsuhgsshgtrhhisggvpdfftffgtefojffquffvnecuuegrihhlohhuthemuceftddtnecunecujfgurhephffvufffkfggtgfgsehtkeertddttdejnecuhfhrohhmpejnnjjnucffrghnucflrggtohgsshhonhcuoehjihgurghnnhhisehjihgurghnnhhirdhorhhgqeenucfkphepvddvtddrudegtddruddvrdduvdehnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmohguvgepshhmthhppdhhvghlohepjhhiuggrnhhnihdrohhrghdpihhnvghtpedvvddtrddugedtrdduvddruddvhedprhgvthhurhhnqdhprghthheppeeruhhtfhdqkeerueerheeimhfphefnihehhegsveekreepucffrghnucflrggtohgsshhonhcuoehjihgurghnnhhisehjihgurghnnhhirdhorhhgqedpmhgrihhlfhhrohhmpehjihgurghnnhhisehjihgurghnnhhirdhorhhgpdhnrhgtphhtthhopegsuhhgqdgtohhrvghuthhilhhssehgnhhurdhorhhg Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=23.83.212.20; envelope-from=jidanni@jidanni.org; helo=blue.elm.relay.mailchannels.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/04/28 12:06:54 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] X-Received-From: 23.83.212.20 X-Spam-Score: -1.4 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) (info "(coreutils) nl invocation") says =E2=80=98pBRE=E2=80=99 number only lines that contain a match for the basic regular expression BRE. *Note Regular Expressions: (grep)Regular Expressions. OK, but add a new functionality: =E2=80=98PBRE=E2=80=99 Do NOT number lines that contain a match for the basic regular expression BRE. *Note Regular Expressions: (grep)Regular Expressions. $ nl --version nl (GNU coreutils) 8.30