zsh-users
 help / color / mirror / code / Atom feed
From: Jean Chalard <jean.chalard@gmail.com>
To: zzapper <david@tvis.co.uk>
Cc: zsh-users@sunsite.dk
Subject: Re: Excluding files & directories from a glob
Date: Wed, 5 Oct 2005 12:01:46 +0900	[thread overview]
Message-ID: <fb6be96e0510042001v2ccae4b4ha368452509e3d274@mail.gmail.com> (raw)
In-Reply-To: <b5i5k1pqbrp6cibu2bcp16m7gpgq3hb4mr@4ax.com>

> >  grep -i 'host' **/(*.cfm~(ctpigeonbot|env).cfm)~*((#s)|/)junk*/*(.)
>
> Is the following OK/ (appears 2b?)
>
> grep -i 'host' **/(*.cfm~ctpigeonbot.cfm)~junk*/*

The difference between what Peter posted and this is that this pattern
will only avoid files with a path starting with 'junk' relative to the
current directory.
To make it more concrete, it behaves the same except in the case when
you have a subdirectory called junk not immediately in the directory
you're executing the command in, so any file under a directory
./*/junk*/ would not be ignored.
For example, if you have
./foo
./junkfoo/bar
./qux/junkcorge/garply

Then your pattern will match the third file whereas Peter's one will exclude it.

--
J
"If you wish to leave a record of your call,
 please state your messij at the sound of the tone."

  reply	other threads:[~2005-10-05  3:02 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-10-04 15:53 zzapper
2005-10-04 16:14 ` Peter Stephenson
2005-10-04 18:25   ` zzapper
2005-10-05  3:01     ` Jean Chalard [this message]
2005-10-06  8:59       ` zzapper
2005-10-06  9:10         ` Jean Chalard
2005-10-06 10:23           ` zzapper
2005-10-06 10:52             ` Jean Chalard
2005-10-06 16:23               ` zzapper
2005-10-14 18:43   ` Hannu Koivisto

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=fb6be96e0510042001v2ccae4b4ha368452509e3d274@mail.gmail.com \
    --to=jean.chalard@gmail.com \
    --cc=david@tvis.co.uk \
    --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).