From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.5 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,HTML_MESSAGE,MAILING_LIST_MULTI autolearn=ham autolearn_force=no version=3.4.4 Received: from minnie.tuhs.org (minnie.tuhs.org [IPv6:2600:3c01:e000:146::1]) by inbox.vuxu.org (Postfix) with ESMTP id F0227232ED for ; Fri, 10 May 2024 18:50:44 +0200 (CEST) Received: from minnie.tuhs.org (localhost [IPv6:::1]) by minnie.tuhs.org (Postfix) with ESMTP id C6060434AF; Sat, 11 May 2024 02:50:40 +1000 (AEST) Received: from mail-yw1-x1129.google.com (mail-yw1-x1129.google.com [IPv6:2607:f8b0:4864:20::1129]) by minnie.tuhs.org (Postfix) with ESMTPS id AD113434AE for ; Sat, 11 May 2024 02:50:35 +1000 (AEST) Received: by mail-yw1-x1129.google.com with SMTP id 00721157ae682-61ab6faf179so22541087b3.1 for ; Fri, 10 May 2024 09:50:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1715359834; x=1715964634; darn=tuhs.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=AKp9xWl68znMIf3EUgwd0O1weWHmV73D2aAbRWdiE4Q=; b=SIfdH6AnbgW4bhd+BAKNoxv967DQsPhDbgA8S7qxiW9Rn4Bg6jmvnEzmVSz5AvSmeq yI5ooQICDaFRdmjBMK5X7IPtU6MjFZ8zekdey+XlLFPLN5NXtklctnSQ94DAHPgmjrm8 JOQMNG6I69BR8eFbhwWkIe+nSeo24hB+XGicmJALW5GkoNtYCO+VscYihPKeAvohvS6i TuzBmIRvmDYPiEzqqe6OX1fnQLOsRgmp/diZNkV6WQEiTedYPBEo4O+pL0t5llgF38lg 46VtKCbtZFGWUP8bB3PpImIiL7YdRClr0/1fkEocMcX9LaSWGruCkNiWn2P6iE3AOt50 cgVA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715359834; x=1715964634; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=AKp9xWl68znMIf3EUgwd0O1weWHmV73D2aAbRWdiE4Q=; b=H0xOc9zzOidwSQuA3KaYkyb4xdOBcQrabUkZj7kLw6zIb+Y3J7IFZ1VGIhMlvvuzF4 ZN8vEOZYJ5DBNb7NzLoZ3pOcHb/Frt3ezHyFPedXSp/0O8+yYSjlT1wXMjIfnFI0y2Ps qFShU9OhqV/jES5Dw+jdrcgJsZSAAxFT+33MMBgbd8+dsYnhxWUzi5MFoUibA6SAwzml CGGWTp1FGt8Qslc7IGh/aUmcq16ZvlTXTEeftXK+LPY9skYJfFwPXxuC4PS3wDRCi9Mm WGgcCSAaTxjgHtoQ+o7+N7r4x6b5UOk44XpYB/BTGuXgp4jjImgvb1GEHTrmTjp7sLFQ 1uvg== X-Forwarded-Encrypted: i=1; AJvYcCUfdN7CkvFkqpdJneZMAtPv8vXlNR4yiaCCsOEWEHvU9vwX0uBj8Eup/zvYt446xpnfVXZXlhZOXQ0IXKrQ X-Gm-Message-State: AOJu0YwlMDE8w2L8+ZYWm4b6bGDRQkhJAaBraZLVjYQcR6u8+xmFx6Kx mCmEeEvzAbnNpYVk6AG/UAlaiJz2J2ea/2MCoRgzLbUth6AaF7DbSnVBsoqy4tH5dbXrRY5sR+i c6A73u5fVnfFVgUyqqc0qyifqnx8HiNW/ X-Google-Smtp-Source: AGHT+IFUGHWsPjLF6ndYQY85dyPfmUSn0iSACKhx/32Aqr05d7IbLK3vvcUFUbvQ+aOQ2WkzMGL5/N0lilhQi+j2FQQ= X-Received: by 2002:a0d:e615:0:b0:609:fef9:77b0 with SMTP id 00721157ae682-622afff91c3mr37613597b3.37.1715359834289; Fri, 10 May 2024 09:50:34 -0700 (PDT) MIME-Version: 1.0 References: <1FECD6DE-3384-406F-8897-8D7C2DAAF636@pobox.com> In-Reply-To: From: "John P. Linderman" Date: Fri, 10 May 2024 12:50:22 -0400 Message-ID: To: Rob Pike Content-Type: multipart/alternative; boundary="00000000000095c13a06181c5538" Message-ID-Hash: VAZOGQUHZ44EGIVU2GDOTBH7T7USSA6R X-Message-ID-Hash: VAZOGQUHZ44EGIVU2GDOTBH7T7USSA6R X-MailFrom: jpl.jpl@gmail.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; 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: nl section delimiters List-Id: The Unix Heritage Society mailing list Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: --00000000000095c13a06181c5538 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I'll accept Rob's theory. Instead of taking the time to go through the alphabet soup of options to nl and pr and ls, learning a tool like awk or perl or python makes implementing most of what these commands do (or what you wish they could do) a one-finger exercise. -- jpl On Fri, May 10, 2024 at 6:09=E2=80=AFAM Rob Pike wrote: > Didn't recognize the command, looked it up. Sigh. > > pr -tn > > seems sufficient for me, but then that raises the question of your > question. > > I've been developing a theory about how the existence of something leads > to things being added to it that you didn't need at all and only thought = of > when the original thing was created. Bloat by example, if you will. I > suspect it will not be a popular theory, however accurately it may descri= be > the technological world. > > -rob > > > On Fri, May 10, 2024 at 4:16=E2=80=AFPM David Arnold w= rote: > >> nl(1) uses the notable character sequences =E2=80=9C\:\:\:=E2=80=9D, =E2= =80=9C\:\:=E2=80=9D, and =E2=80=9C\:=E2=80=9D to >> delimit header, body, and trailer sections within its input. >> >> I wondered if anyone was able to shed light on the reason those were >> adopted as the defaults? >> >> I would have expected perhaps something compatible with *roff (like, .\= =E2=80=9D >> something). >> >> FreeBSD claims nl first appeared in System III (although it previously >> claimed SVR2), but I haven=E2=80=99t dug into the implementation any fur= ther. >> >> Thanks in advance, >> >> >> >> d >> > --00000000000095c13a06181c5538 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I&#= 39;ll accept Rob's theory. Instead of taking the time to go through the= alphabet soup of options to nl and pr and ls, learning a tool like awk or = perl or python makes implementing most of what these commands do (or what y= ou wish they could do) a one-finger exercise. -- jpl

On Fri, May 1= 0, 2024 at 6:09=E2=80=AFAM Rob Pike <robpike@gmail.com> wrote:
Didn't recognize the command, looked it up= . Sigh.

=C2=A0 pr -tn <file>

seems sufficient for me, but then that= raises the question of your question.

I've been developing a theory a= bout how the existence of something leads to things being added to it that = you didn't need at all and only thought of when the original thing was = created. Bloat by example, if you will. I suspect it will not be a popular = theory, however accurately it may describe the technological world.

-rob

On Fri, May 10, 2024 at 4:16=E2=80=AFPM David Arnold <davida@pobox.com> wrote:<= br>
nl(1) uses the n= otable character sequences =E2=80=9C\:\:\:=E2=80=9D, =E2=80=9C\:\:=E2=80=9D= , and =E2=80=9C\:=E2=80=9D to delimit header, body, and trailer sections wi= thin its input.

I wondered if anyone was able to shed light on the reason those were adopte= d as the defaults?

I would have expected perhaps something compatible with *roff (like, .\=E2= =80=9D something).

FreeBSD claims nl first appeared in System III (although it previously clai= med SVR2), but I haven=E2=80=99t dug into the implementation any further. <= br>
Thanks in advance,



d
--00000000000095c13a06181c5538--