zsh-users
 help / color / mirror / code / Atom feed
From: Peter Stephenson <p.stephenson@samsung.com>
To: zsh-users@zsh.org
Subject: Re: Globbing question
Date: Mon, 18 Nov 2013 11:00:14 +0000	[thread overview]
Message-ID: <20131118110014.504fd024@pwslap01u.europe.root.pri> (raw)
In-Reply-To: <20131118104543.GA15404@linux.vnet.ibm.com>

On Mon, 18 Nov 2013 11:45:43 +0100
Dominik Vogt <vogt@linux.vnet.ibm.com> wrote:
> I'm looking for a globbing pattern that matches all plain files in
> all subdirectories except "git".

(^git)/**/*(.)

If you want to avoid matching git recursively in subdirectories, too,
you need EXTENDED_GLOB and

(^git/)##**/*(.)

and you'd remove the second "#" to include files in the current
directory.

pws


  reply	other threads:[~2013-11-18 11:10 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-18 10:45 Dominik Vogt
2013-11-18 11:00 ` Peter Stephenson [this message]
2013-11-18 11:31   ` Dominik Vogt
2013-11-18 12:10     ` Peter Stephenson
2013-11-19  0:10   ` zzapper
2013-11-19  6:17     ` Eike von Seggern
  -- strict thread matches above, loose matches on Subject: below --
2004-09-16  3:08 lists
2004-09-16 14:30 ` Peter Stephenson
2004-09-16 15:20   ` Oliver Kiddle
2004-09-17  0:51     ` lists
2004-09-17 10:16       ` Oliver Kiddle
2004-09-17  9:45     ` Peter Stephenson
2004-09-17 10:31       ` Oliver Kiddle

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=20131118110014.504fd024@pwslap01u.europe.root.pri \
    --to=p.stephenson@samsung.com \
    --cc=zsh-users@zsh.org \
    /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).