zsh-users
 help / color / mirror / code / Atom feed
From: Dominik Vogt <vogt@linux.vnet.ibm.com>
To: zsh-users@zsh.org
Subject: Globbing question
Date: Mon, 18 Nov 2013 11:45:43 +0100	[thread overview]
Message-ID: <20131118104543.GA15404@linux.vnet.ibm.com> (raw)

Assuming I have a directory with some files and some
subdirectories, e.g.

 subdir/
 anothersubdir/
 ...
 subdir123/
 git/
 file
 anotherfile
 
I'm looking for a globbing pattern that matches all plain files in
all subdirectories except "git".  The pattern

  $ ls -d ^git(/)

gives me all directories except "git", but the next one produces
an error message:

  $ ls -d ^git(/)/**/*(.)
  zsh: bad pattern: ^git(/)/**/*(.)

So my questions are:

1. Why does this pattern not work; what am I missing?
2. What is the correct pattern for the task at hand?

(Note: The reason why I need to exclude "git" from the pattern is
that there are too many files in that directory, so I get an
"zsh: argument list too long" error.)

Ciao

Dominik ^_^  ^_^


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

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-18 10:45 Dominik Vogt [this message]
2013-11-18 11:00 ` Peter Stephenson
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=20131118104543.GA15404@linux.vnet.ibm.com \
    --to=vogt@linux.vnet.ibm.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).