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_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 12517 invoked from network); 23 Jul 2022 12:02:15 -0000 Received: from minnie.tuhs.org (50.116.15.146) by inbox.vuxu.org with ESMTPUTF8; 23 Jul 2022 12:02:15 -0000 Received: from minnie.tuhs.org (localhost [IPv6:::1]) by minnie.tuhs.org (Postfix) with ESMTP id D403540146; Sat, 23 Jul 2022 22:01:52 +1000 (AEST) Received: from mail-oa1-f48.google.com (mail-oa1-f48.google.com [209.85.160.48]) by minnie.tuhs.org (Postfix) with ESMTPS id D04BA40144 for ; Sat, 23 Jul 2022 22:01:46 +1000 (AEST) Received: by mail-oa1-f48.google.com with SMTP id 586e51a60fabf-10cf9f5b500so9251895fac.2 for ; Sat, 23 Jul 2022 05:01:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=cwK5bGonEMsMppdSeVQDvO/i3dvDRI4J/bhuJNwf+KY=; b=JLKVQ0p1/cgiAeKxe0K36W28ab1zbCqxyzjX+gtKr638doxDaIiNnN9ZAZbrWz+/Bs upi0L1KajwD4zddFS2tpIbJFVl5KpwaNF1phPCLFmLFpsVgXF/li1ZFQ2EQ2ztFhpkVZ W17SGvWepCyxZgqQFPmtWBJBVPx8Req8oY74bcsjsiqllrzWgcYk9azo9trxzn8vt01O HRxXaQkGqku1JIvWmW4JkhGgFdCKuYdkP4beKOBZqX7wTAW4AKfKJuJ1GmoOHf7EjbO/ OM81K+werPRA+CbeIEV99jAoRuUPsfWSLD0VgF+wQ3kqScLvrWqBha0FemPFvH8etlmk wRTQ== 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=cwK5bGonEMsMppdSeVQDvO/i3dvDRI4J/bhuJNwf+KY=; b=SxB5kg3m5hNdxgAqdmRdlzujPEWGwocXx+ubPgKzyiwSbIgWDEvZZp+BAELNgYBT4e XaH7nukIdn9H2WlkVIGF5yGkbzRMaheRQVfPLqUqft33FvMIp4q9BxKZAmtIfU7XJNnh CalVImLao9QmwZg1L3Se3qZC67vubSfsdh2uPzFNG7WD00ujIRIDeiYf2ASGQuF371ME rVsxytVudYpaMzPHMqdq6XJ4ZZ7JcFlceunAp9PQAYEqwCJUNp9vjYYPleTfQzAQHsBA wkiCJkiILG5zjG0H+l6EpL6st2CZ3TLA2MRpO2QF4N4DLeAq5iCebudDGankXbJpWDue fmLw== X-Gm-Message-State: AJIora/OmFBnenlfyyuEJiE0qOrKtH4t0qznBdLfwBM5jLLaoR6KcWu/ tv5uM7rxCUOq8vFB0eK3YwmcuKasVbwpUZlj4JE= X-Google-Smtp-Source: AGRyM1uGWwfK4WZWdoMUv8/37klr1cPvfDze4XZEZWsk+jd0wuYsFyIFA3D0gU7K/67SbiWHzR+UaCCtfT6ofKcTk/0= X-Received: by 2002:a05:6870:4625:b0:fe:4636:cf73 with SMTP id z37-20020a056870462500b000fe4636cf73mr2057778oao.278.1658577646209; Sat, 23 Jul 2022 05:00:46 -0700 (PDT) MIME-Version: 1.0 References: <1oF87S-4zW-00@marmaro.de> <8NgHeeJiYEBE0zhtd9RdKIeYWcAwtxsnAj7YhVIvLpz-yt0__LeFvVzNNGgSNTeDGnVQy-qxkoHWvmRi84ybYyNAiMRDJuVoAaEG96UAu4s=@protonmail.com> In-Reply-To: From: Dan Cross Date: Sat, 23 Jul 2022 08:00:10 -0400 Message-ID: To: John Cowan Content-Type: text/plain; charset="UTF-8" Message-ID-Hash: KSZ7G5R5ZUARWGDLHW5D3QYXACG5K2T2 X-Message-ID-Hash: KSZ7G5R5ZUARWGDLHW5D3QYXACG5K2T2 X-MailFrom: crossd@gmail.com 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: On Sat, Jul 23, 2022 at 7:20 AM John Cowan wrote: > 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. Yes, but awk wasn't widely available until 7th edition. I imagine work on it began before `num` in 2BSD, but few outside of Bell Labs would have seen it prior to 1978 or so. I wonder if the use-case was just sufficiently rare that no one felt like building a special tool and it was just done on an ad-hoc basis, if necessary. - Dan C.