9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Alexander Kapshuk <alexander.kapshuk@gmail.com>
To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net>
Subject: Re: [9fans] acme search backwards
Date: Wed,  2 Sep 2015 17:37:37 +0300	[thread overview]
Message-ID: <CAJ1xhMV1Vc4+HnBZYFCRyzdYTK9YTaHnn0fYF8gwBUr+Smj0-A@mail.gmail.com> (raw)
In-Reply-To: <5ad5dfde114f33e7a3520275a573d2d8@proxima.alt.za>

On Wed, Sep 2, 2015 at 5:01 PM,  <lucio@proxima.alt.za> wrote:
>> Also there was a discussion on 9fans about it with other
>> suggestions/solutions.
>
>  :-/RE<B3>
>
> is what I remember Russ recommending,  It's not perfect, but it does help.
>
> Lucio.
>
>

Page 4 of A Tutorial for Sam Command Language, by Rob Pike, suggests
the following usage:
>>>
Just precede the pattern with a minus
sign, which reverses the direction of the search:
-/Emacs/

Similarly,
$-/Emacs/
finds the last occurrence in the file, so
0/Emacs/,$-/Emacs/
selects the text from the first to last Emacs, inclusive.
<<<



  reply	other threads:[~2015-09-02 14:37 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-02  6:08 Rudolf Sykora
2015-09-02 13:14 ` Mathieu Lonjaret
2015-09-02 14:01   ` lucio
2015-09-02 14:37     ` Alexander Kapshuk [this message]
2015-09-02 15:01       ` Rudolf Sykora
2015-09-02 15:27         ` lucio
2015-09-03  9:16     ` Mathieu Lonjaret
2015-09-03  9:38       ` Rudolf Sykora
2015-09-03 13:11         ` erik quanstrom
2015-09-03 13:34           ` Aram Hăvărneanu
2015-09-03 14:14             ` erik quanstrom
2015-09-03 14:27               ` Stanley Lieber
2015-09-03 14:30               ` Kurt H Maier
2015-09-03 14:42               ` Rudolf Sykora

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=CAJ1xhMV1Vc4+HnBZYFCRyzdYTK9YTaHnn0fYF8gwBUr+Smj0-A@mail.gmail.com \
    --to=alexander.kapshuk@gmail.com \
    --cc=9fans@9fans.net \
    /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).