From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: <5ad5dfde114f33e7a3520275a573d2d8@proxima.alt.za> References: <5ad5dfde114f33e7a3520275a573d2d8@proxima.alt.za> From: Alexander Kapshuk Date: Wed, 2 Sep 2015 17:37:37 +0300 Message-ID: To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: text/plain; charset=UTF-8 Subject: Re: [9fans] acme search backwards Topicbox-Message-UUID: 686b2eda-ead9-11e9-9d60-3106f5b1d025 On Wed, Sep 2, 2015 at 5:01 PM, wrote: >> Also there was a discussion on 9fans about it with other >> suggestions/solutions. > > :-/RE > > 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. <<<