The Unix Heritage Society mailing list
 help / color / mirror / Atom feed
From: "John P. Linderman" <jpl.jpl@gmail.com>
To: Rob Pike <robpike@gmail.com>
Cc: tuhs@tuhs.org
Subject: [TUHS] Re: nl section delimiters
Date: Fri, 10 May 2024 12:50:22 -0400	[thread overview]
Message-ID: <CAC0cEp-E8f8nXaCMM34opqcgPQFpOQnE6Z9m3g1o4N_ET5-nsA@mail.gmail.com> (raw)
In-Reply-To: <CAKzdPgwGdkDUx_FSm0sVSUeFV=R_nox7H4qhBKjVN0drHq89pg@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1513 bytes --]

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 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
>>
>

[-- Attachment #2: Type: text/html, Size: 2827 bytes --]

  parent reply	other threads:[~2024-05-10 16:50 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
2024-05-10 16:50   ` John P. Linderman [this message]
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=CAC0cEp-E8f8nXaCMM34opqcgPQFpOQnE6Z9m3g1o4N_ET5-nsA@mail.gmail.com \
    --to=jpl.jpl@gmail.com \
    --cc=robpike@gmail.com \
    --cc=tuhs@tuhs.org \
    /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).