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, HTML_MESSAGE,MAILING_LIST_MULTI autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 5906 invoked from network); 23 Jul 2022 11:22:31 -0000 Received: from minnie.tuhs.org (50.116.15.146) by inbox.vuxu.org with ESMTPUTF8; 23 Jul 2022 11:22:31 -0000 Received: from minnie.tuhs.org (localhost [IPv6:::1]) by minnie.tuhs.org (Postfix) with ESMTP id AFFD640146; Sat, 23 Jul 2022 21:21:56 +1000 (AEST) Received: from mail-vs1-f49.google.com (mail-vs1-f49.google.com [209.85.217.49]) by minnie.tuhs.org (Postfix) with ESMTPS id E9D0840144 for ; Sat, 23 Jul 2022 21:21:51 +1000 (AEST) Received: by mail-vs1-f49.google.com with SMTP id d187so6430659vsd.10 for ; Sat, 23 Jul 2022 04:21:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ccil-org.20210112.gappssmtp.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=4EV4rZiNlbNnP++6Zbw4f1iQ+dSVVD9hDxlwvste3bs=; b=FEiNpqGWP61oU6/1sBlKwwYveloTpWQOa4xRe12wPcvsB/kN8zd3qo4nUhJfbnA8Xo n0YWQYm20GTSaeetn8Vgeyc3mU/tx7+bEtOkvpRsvfGscPbLRY6zUnTS/m46u3oUPyBk 6nfGgXLK4Me144szgW8sNSbrqDzOwFikgCzJ9xz9KN0roaWwbAOKW5UJvZ/1MwHxuQws k29GGGNnowipJCgUmbQrWV/8+6Nmhcuf1nOklHEuCwTbQAYP20kNzxP18rF4AWum78EH A6+0vrAn35uKrzhL9ONRb9C/vSitDBeprZkT4Zk6QWr9clN+Hk6Am0JQ1+AWV8wsy63L wNMQ== 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=4EV4rZiNlbNnP++6Zbw4f1iQ+dSVVD9hDxlwvste3bs=; b=ue821Qxua6JH05XsS1VgScU8OFSir1lcbQ+TSp3soCXBIm1NNpR16ZIVvn5mD1WpLI FRWuj+Ff7IS996LWOtkWRhr1GZr9Pz6ngLIZjrcVDWuHXB5i9f0BSgKNzANA857GZcTF kllpqbQ5fktq7DF5qFHAjdYEV7JS+mYLyXc8eftnQ+wE3Yp/I6d/NoT2/k25/+7+UkiM qouwO9woaUn3W4KiIUykaO00SEBfun5p/9xS9IgWLkdNrhlKunyedQ29bC013jB/SNxM GFU6JwDPlyEiM0t5cleV+ADxDtjXeM/4TyBVst/Hbj/phNHZHKv6vLL7Njn2EFQisBNq 9BOQ== X-Gm-Message-State: AJIora91RtghoXx1vRQmWz5jnQpYlPiu0dRs4EX2SDOD6YKaHGVLm+cB IuhtdJl4Kf36nRgojRwsuyr6nkBpqqFHAJG3edmc8A== X-Google-Smtp-Source: AGRyM1tqIsXLvPza9XfFzkVvkmTE8u6cJ8VcjSOmfkN8DesDpcFFh0AQZ0sQQaHq8LbmczLpKRIqUkikiL9v/84EfA8= X-Received: by 2002:a67:fd90:0:b0:358:397c:f6e with SMTP id k16-20020a67fd90000000b00358397c0f6emr1168959vsq.48.1658575250851; Sat, 23 Jul 2022 04:20:50 -0700 (PDT) MIME-Version: 1.0 References: <1oF87S-4zW-00@marmaro.de> <8NgHeeJiYEBE0zhtd9RdKIeYWcAwtxsnAj7YhVIvLpz-yt0__LeFvVzNNGgSNTeDGnVQy-qxkoHWvmRi84ybYyNAiMRDJuVoAaEG96UAu4s=@protonmail.com> In-Reply-To: From: John Cowan Date: Sat, 23 Jul 2022 07:20:40 -0400 Message-ID: To: Dan Cross Content-Type: multipart/alternative; boundary="000000000000a91f5d05e477242f" Message-ID-Hash: P7736WK54PYDBE7M3ORLOD6W7O74ZGKN X-Message-ID-Hash: P7736WK54PYDBE7M3ORLOD6W7O74ZGKN X-MailFrom: cowan@ccil.org 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: segaloco , The Eunuchs Hysterical Society 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: --000000000000a91f5d05e477242f Content-Type: text/plain; charset="UTF-8" On Sat, Jul 23, 2022 at 7:03 AM Dan Cross wrote: > It may be worth noting that BSD had `cat -n` in 4BSD by October, 1980: > https://minnie.tuhs.org/cgi-bin/utree.pl?file=4BSD/usr/man/man1/cat.1 > > That may explain the relatively late incorporation of `nl` in, at least, > the BSD lineage. > An obvious approach, which would leave no real traces in documentation, would be: $ awk '{print NR, $0}' A more precise emulation would be more of a pain to type: $ awk '{printf("%6d\t%s\n", NR, $0)}' but perfectly usable in a script. --000000000000a91f5d05e477242f Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


On Sat, Jul 23, 2= 022 at 7:03 AM Dan Cross <crossd@gma= il.com> wrote:
=C2=A0
It may be worth noting that BSD had `ca= t -n` in 4BSD by October, 1980: https://minnie.t= uhs.org/cgi-bin/utree.pl?file=3D4BSD/usr/man/man1/cat.1
=

That may explain the re= latively late incorporation of `nl` in, at least, the BSD lineage.

An obvious approac= h, which would leave no real traces in documentation, would be:

$ awk '{print N= R, $0}'

A more precise emulation would be more of a pain to type:

$ awk '{printf("%= 6d\t%s\n", NR, $0)}'

but perfectly usable in a script.<= /div>

--000000000000a91f5d05e477242f--