From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22910 invoked from network); 19 Mar 2002 11:54:19 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 19 Mar 2002 11:54:19 -0000 Received: (qmail 17700 invoked by alias); 19 Mar 2002 11:53:58 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 4757 Received: (qmail 17686 invoked from network); 19 Mar 2002 11:53:57 -0000 Date: Tue, 19 Mar 2002 22:53:46 +1100 From: Nick Croft To: zsh-users@sunsite.dk Subject: fc -l -m 'some pattern' Message-ID: <20020319115346.GI16775@acay.com.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.27i X-Editor: Vim http://www.vim.org/ Organisation: Theme and Variations X-Operating-System: Debian GNU/Linux 2.2.17 (i686) X-Uptime: 10:51pm up 17 days, 3:23, 7 users, load average: 1.03, 1.05, 1.05 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