zsh-users
 help / color / mirror / code / Atom feed
From: Sven Wischnowsky <wischnow@berkom.de>
To: zsh-users@sunsite.dk
Subject: Re: fc -l -m 'some pattern'
Date: Tue, 19 Mar 2002 13:16:00 +0100	[thread overview]
Message-ID: <15511.11264.967470.402569@wischnow.berkom.de> (raw)
In-Reply-To: <20020319115346.GI16775@acay.com.au>


Nick Croft wrote:

> I'm new at using zsh. Working through a tutorial.
> 
> I read that 
> 
>    Using the -m flag in conjunction with -l, you can specify a pattern.
>    (don't forget to quote the pattern!). Then, only commands matching
>    the pattern will be displayed. 
> 
> So for example, if 
> 
>    fc -l -300 -285 
> 
> shows that I used vim in a command a number of times, to isolate only the
> 'vim' occurrences should I not type
> 
>    fc -lm "vim" -300 -285    ?
> 
> Or do you need the entire command line? (That would be a severe
> limitation I think).

You need a *pattern* that matches the entire line. E.g.:

  fc -lm "vim*" -300 -285

Or even "*vim*".


Bye
  Sven

-- 
Sven Wischnowsky                          wischnow@berkom.de


      reply	other threads:[~2002-03-19 12:16 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-03-19 11:53 Nick Croft
2002-03-19 12:16 ` Sven Wischnowsky [this message]

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=15511.11264.967470.402569@wischnow.berkom.de \
    --to=wischnow@berkom.de \
    --cc=zsh-users@sunsite.dk \
    /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.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

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