zsh-users
 help / color / mirror / code / Atom feed
From: djh <henman@it.to-be.co.jp>
To: zsh-users@sunsite.dk
Subject: Re: selecting a subset of an array
Date: Thu, 02 Jun 2005 17:27:56 +0900	[thread overview]
Message-ID: <429EC30C.2070401@it.to-be.co.jp> (raw)
In-Reply-To: <5D68F5D7-430A-44F5-A1A3-CB4690AB13CD@jota.gsc.riken.go.jp>

Kagawa-san,
    try using ${array-namae:#pattern}    Here's the explanation I found 
in the manual.

--> If the parameter  is an ARRAY the matching array elements are removed.
      For the opposite effect use the `(M)' flag to remove the 
non-matched elements).

Darel Henman

--------------------

Wataru Kagawa wrote:

> Sorry for another basic question, but how do I exclude a particular  
> element from an array by using its name in a parameter expansion?   
> For example, I would like to select everything except for  
> 'foo1:output file' from the following array, using only 'foo1' in the  
> expansion.
>
> _list=( 'foo1:output file' 'foo2:input file' 'foo3:output figs'  
> 'foo4:input figs' )
>
> Help is much appreciated.
>
> Wataru Kagawa



  reply	other threads:[~2005-06-02  8:27 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-06-02  7:28 Wataru Kagawa
2005-06-02  8:27 ` djh [this message]
2005-06-02  8:42   ` djh
2005-06-02 10:55 Wataru Kagawa

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=429EC30C.2070401@it.to-be.co.jp \
    --to=henman@it.to-be.co.jp \
    --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).