The Unix Heritage Society mailing list
 help / color / mirror / Atom feed
From: segaloco via TUHS <tuhs@tuhs.org>
To: The Eunuchs Hysterical Society <tuhs@tuhs.org>
Subject: [TUHS] Re: nl section delimiters
Date: Fri, 10 May 2024 16:05:15 +0000	[thread overview]
Message-ID: <WvDE-ueTJJYDLwTxL2MK49Ub_KsWOJ3UmpsSheFD-r57lSy2OBPqN_AVPIfmW7NMM-D0XYAAky9O7ZN8DXbgl7IhuDum_duveZLsHFRKXEo=@protonmail.com> (raw)
In-Reply-To: <CAKzdPgwGdkDUx_FSm0sVSUeFV=R_nox7H4qhBKjVN0drHq89pg@mail.gmail.com>

On Friday, May 10th, 2024 at 3:08 AM, Rob Pike <robpike@gmail.com> wrote:

> Didn't recognize the command, looked it up. Sigh.
> 
> pr -tn <file>
> 
> 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 describe the technological world.
> 
> -rob
> 
> 
> On Fri, May 10, 2024 at 4:16 PM David Arnold <davida@pobox.com> wrote:
> 
> > nl(1) uses the notable character sequences “\:\:\:”, “\:\:”, and “\:” 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, .\” something).
> > 
> > FreeBSD claims nl first appeared in System III (although it previously claimed SVR2), but I haven’t dug into the implementation any further.
> > 
> > Thanks in advance,
> > 
> > 
> > 
> > d

https://www.tuhs.org/pipermail/tuhs/2022-July/026197.html

Here's an earlier thread on nl that doesn't answer your specific question on the sequences but may provide some background on nl(1).

- Matt G.

  reply	other threads:[~2024-05-10 16:05 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-10  6:15 [TUHS] " David Arnold
2024-05-10 10:08 ` [TUHS] " Rob Pike
2024-05-10 16:05   ` segaloco via TUHS [this message]
2024-05-10 16:50   ` John P. Linderman
2024-05-10 23:05     ` Steffen Nurpmeso
2024-05-11  9:07     ` Ralph Corderoy
2024-05-11  2:19 [TUHS] " Douglas McIlroy
2024-05-11 20:48 ` [TUHS] " Steffen Nurpmeso
2024-05-13 13:12   ` Chet Ramey

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='WvDE-ueTJJYDLwTxL2MK49Ub_KsWOJ3UmpsSheFD-r57lSy2OBPqN_AVPIfmW7NMM-D0XYAAky9O7ZN8DXbgl7IhuDum_duveZLsHFRKXEo=@protonmail.com' \
    --to=tuhs@tuhs.org \
    --cc=segaloco@protonmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).