9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: sqweek <sqweek@gmail.com>
To: "Fans of the OS Plan 9 from Bell Labs" <9fans@cse.psu.edu>
Subject: Re: [9fans] Non-parallel loop in Sam
Date: Thu,  7 Feb 2008 20:38:41 +0900	[thread overview]
Message-ID: <140e7ec30802070338w657eaba7hfaef1dc3462cd559@mail.gmail.com> (raw)
In-Reply-To: <b954b2060802070333q502e1383j25d4810c16948ccf@mail.gmail.com>

On Feb 7, 2008 8:33 PM, Hongzheng Wang <wanghz@gmail.com> wrote:
> > To
> > reverse the order of lines within a file already opened by
> > sam, I would simply enter the following sam commands:
> >         ,| nl | sort -rn
> >         ,x/^ +[0-9]+    /d
>
> tac

 Note that plan 9 has tail -r to reverse lines.
-sqweek


  reply	other threads:[~2008-02-07 11:38 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-06 16:57 Hongzheng Wang
2008-02-07  9:55 ` Douglas A. Gwyn
2008-02-07 11:33   ` Hongzheng Wang
2008-02-07 11:38     ` sqweek [this message]
2008-02-07 11:42     ` y i y u s
2008-02-07 11:43   ` Rob Pike
2008-02-07 12:37     ` Hongzheng Wang

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=140e7ec30802070338w657eaba7hfaef1dc3462cd559@mail.gmail.com \
    --to=sqweek@gmail.com \
    --cc=9fans@cse.psu.edu \
    /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).