From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27301 invoked from network); 30 Dec 2001 22:16:20 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 30 Dec 2001 22:16:20 -0000 Received: (qmail 25734 invoked by alias); 30 Dec 2001 22:16:13 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 16381 Received: (qmail 25723 invoked from network); 30 Dec 2001 22:16:11 -0000 Date: Sun, 30 Dec 2001 17:16:03 -0500 From: Clint Adams To: Bruno Bonfils , zsh-workers@sunsite.dk Subject: Re: MPlayer completion fonction Message-ID: <20011230221603.GA3494@dman.com> References: <20011230161538.GA5145@debian-fr.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20011230161538.GA5145@debian-fr.org> User-Agent: Mutt/1.3.24i > i don't know how to use pattern matching in order to take only > driver of a mplayer -vo help. (how to suppress the first line ?) > if you have an idea... ${${${(M)${(f)"$(mplayer -vo help)"}:# *}/ /}/ /:} Assuming they don't change the output format, this will find all relevant lines by virtue of the beginning TAB, discard them, then replace the second tabs with colons in case you want to use those descriptions (and why waste free descriptions?). All blocks of whitespace in that line should be literal TABs, by the way.