* fc -l -m 'some pattern'
@ 2002-03-19 11:53 Nick Croft
2002-03-19 12:16 ` Sven Wischnowsky
0 siblings, 1 reply; 2+ messages in thread
From: Nick Croft @ 2002-03-19 11:53 UTC (permalink / raw)
To: zsh-users
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).
Thanks,
Nick
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: fc -l -m 'some pattern'
2002-03-19 11:53 fc -l -m 'some pattern' Nick Croft
@ 2002-03-19 12:16 ` Sven Wischnowsky
0 siblings, 0 replies; 2+ messages in thread
From: Sven Wischnowsky @ 2002-03-19 12:16 UTC (permalink / raw)
To: zsh-users
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-03-19 12:16 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-03-19 11:53 fc -l -m 'some pattern' Nick Croft
2002-03-19 12:16 ` Sven Wischnowsky
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).