From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23008 invoked from network); 19 Mar 2002 12:16:52 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 19 Mar 2002 12:16:52 -0000 Received: (qmail 22409 invoked by alias); 19 Mar 2002 12:16:38 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 4758 Received: (qmail 22398 invoked from network); 19 Mar 2002 12:16:37 -0000 From: Sven Wischnowsky MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15511.11264.967470.402569@wischnow.berkom.de> Date: Tue, 19 Mar 2002 13:16:00 +0100 To: zsh-users@sunsite.dk Subject: Re: fc -l -m 'some pattern' In-Reply-To: <20020319115346.GI16775@acay.com.au> References: <20020319115346.GI16775@acay.com.au> X-Mailer: VM 6.95 under 21.5 (patch 3) "asparagus" XEmacs Lucid 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