From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, MAILING_LIST_MULTI autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 6602 invoked from network); 23 Jul 2022 19:09:09 -0000 Received: from minnie.tuhs.org (50.116.15.146) by inbox.vuxu.org with ESMTPUTF8; 23 Jul 2022 19:09:09 -0000 Received: from minnie.tuhs.org (localhost [IPv6:::1]) by minnie.tuhs.org (Postfix) with ESMTP id 900ED406D9; Sun, 24 Jul 2022 05:08:45 +1000 (AEST) Received: from mail-wm1-f46.google.com (mail-wm1-f46.google.com [209.85.128.46]) by minnie.tuhs.org (Postfix) with ESMTPS id 5F6BA4014F for ; Sun, 24 Jul 2022 05:08:41 +1000 (AEST) Received: by mail-wm1-f46.google.com with SMTP id f24-20020a1cc918000000b003a30178c022so6996740wmb.3 for ; Sat, 23 Jul 2022 12:08:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dartmouth.edu; s=google1; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=yxC1ex7TZfuD/ldKsZ2RHFhJUiJfVsVPluf5FvMJThY=; b=wkQOPkJzLkCkyk/oPxZRjKa/oZTmXTU/VOs5dOqmz4JGQ60h0/bSDqc+FGH51OpUYf C9Y/bdMZK9xb0ceB+n8S/tTUFVfNZnvwV6xo3Rw+C86RBdctrKbQmtg6qraMfKP4MyU3 1vhh6rWFi5w2UeAViS2K6r3Ss1qxW2Cp25h2wpNFulSJfIhHMtRRReF9e0k+VhoxY+XC FSYOnprivaC+OdF9WSluilJgfqv4GrXT3gLtg0cD4yr/OHDMDJL0oy+eTh8CSGyLpdRJ gBCDpqu7y2pyTdHM65ttnCIcu6rk5bmZL5IvuA0vQi8fARD/dQsAt+cglIyO/SkVJkwO TX/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=yxC1ex7TZfuD/ldKsZ2RHFhJUiJfVsVPluf5FvMJThY=; b=YF6p2fhz2y21KZecnvBW/1Abgjx8eF3Zg77vMBrIj8Q7v9BGYLgVgXuKTm1+eAXf0i f9ANfucCZUqqvo9+Mo9xrwFN/rNIt0rGulXn+TnyfLPHz1pAHZN6ebNy/QFfH1V8Uq7B jFjHR64pAvZ2o8GNQUBU42mg4ReYJdpTmoHiI4UdtCVN2wla2wHX4cw6Ij9wiNCEu8KJ p3vHXZu09Xf4AU/HLEagN6Aq2HWp7nPtQRjNU05jVpjWEgo5avxs+SO8SYZfiC/XSW4C cXwcnvaLhBnLEW5P6a6f3yYaVMkkCAsvwj6zc07RLinAF3nxCLUTRurLBKKIFDxEv0tJ Sshw== X-Gm-Message-State: AJIora+9Uf/g2d3XME64s8bNKB0decRWaCWjf2HzjTnkV/efYy27r3A0 ioa+9NgyfcrBKCoz0dAbB65kK/i9jC4Y91G+e3cHCDjAc9o= X-Google-Smtp-Source: AGRyM1uzYHTfaMLQR3nL18LJ4MeYquOKeZXrDdAHFrIMvAH5ewR0QS9LjsI6GafYToqJTDBg30ixN2EqBd1O5acAl18= X-Received: by 2002:a1c:2b05:0:b0:3a0:2ae2:5277 with SMTP id r5-20020a1c2b05000000b003a02ae25277mr3637918wmr.30.1658603259719; Sat, 23 Jul 2022 12:07:39 -0700 (PDT) MIME-Version: 1.0 References: <202207231840.26NIea2P042721@ultimate.com> In-Reply-To: From: Douglas McIlroy Date: Sat, 23 Jul 2022 15:07:25 -0400 Message-ID: To: "Nelson H. F. Beebe" Content-Type: text/plain; charset="UTF-8" Message-ID-Hash: MZGRDDZWTU7TBITV6NEIACTHK544UMGQ X-Message-ID-Hash: MZGRDDZWTU7TBITV6NEIACTHK544UMGQ X-MailFrom: douglas.mcilroy@dartmouth.edu X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-tuhs.tuhs.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: tuhs@tuhs.org X-Mailman-Version: 3.3.6b1 Precedence: list Subject: [TUHS] Re: Line Numbers Before SysIII nl? BSD num? List-Id: The Unix Heritage Society mailing list Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Did you use "grep -n '.' "? grep -n '^' matches blank lines, too. Doug On Sat, Jul 23, 2022 at 2:51 PM Nelson H. F. Beebe wrote: > > Phil Budne suggests "grep -n ." to print numbered > lines. > > That mostly works, but loses blank lines, although they are properly > counted. I typically use > > awk '{print FNR ":" $0}' > > instead, which reports all lines, regardless of contents. > > ------------------------------------------------------------------------------- > - Nelson H. F. Beebe Tel: +1 801 581 5254 - > - University of Utah - > - Department of Mathematics, 110 LCB Internet e-mail: beebe@math.utah.edu - > - 155 S 1400 E RM 233 beebe@acm.org beebe@computer.org - > - Salt Lake City, UT 84112-0090, USA URL: http://www.math.utah.edu/~beebe/ - > -------------------------------------------------------------------------------