9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: "Chris Fröschl" <chris@chrisfroeschl.de>
To: 9fans <9fans@9fans.net>
Subject: Re: [9fans] Deleting lines in sam - d
Date: Thu, 12 May 2022 07:54:42 +0200	[thread overview]
Message-ID: <20220512055442.pV5NZ%chris@chrisfroeschl.de> (raw)
In-Reply-To: <16523007960.a0A5.2553@composer.9fans.topicbox.com>

revcomninos@gmail.com wrote:

> Many thanks. I will apply your solutions and revert back. It just seems a little counter intuitive not to be able to show the line numbers as ed does,especially if one is viewing a large body of text. 

You can also try:

        unix: ,>nl
        plan9: ,x {
                p
        } (or write your own nl)

That might do it for larger bodies. Although you have to prepare a
more dedicated script for a clean nl approach.

I like that sam doesn't offer that feature (especially because it
doesn't really need it). It makes you think more about your environment
scripts and how to use/prepare the utilities inside the sam env.

I'm always trying to prepare some sam specific shell/rc scripts and
get my 'missing' features that way. I would appreciate a more clean
nl solution if anyone got something to offer.


------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/Tc5c492077a61275c-Madd47ff7eed5de28fbce700a
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription

  reply	other threads:[~2022-05-12  5:55 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-05-11 19:11 revcomninos
2022-05-11 19:22 ` umbraticus
2022-05-11 20:26   ` revcomninos
2022-05-12  5:54     ` Chris Fröschl [this message]
2022-05-12  6:41       ` umbraticus
2022-05-12 10:00     ` revcomninos

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=20220512055442.pV5NZ%chris@chrisfroeschl.de \
    --to=chris@chrisfroeschl.de \
    --cc=9fans@9fans.net \
    --subject='Re: [9fans] Deleting lines in sam - d' \
    /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

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