Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Globbing question



On Mon, Nov 18, 2013 at 11:00:14AM +0000, Peter Stephenson wrote:
> On Mon, 18 Nov 2013 11:45:43 +0100
> Dominik Vogt <vogt@xxxxxxxxxxxxxxxxxx> wrote:
> > I'm looking for a globbing pattern that matches all plain files in
> > all subdirectories except "git".
> 
> (^git)/**/*(.)

Thanks.

> If you want to avoid matching git recursively in subdirectories, too,
> you need EXTENDED_GLOB and
> 
> (^git/)##**/*(.)

I guess you meant

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

(without the slash in the parentheses) because otherwise it does
not work.

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

Ciao

Dominik ^_^  ^_^

-- 

Dominik Vogt
IBM Germany



Messages sorted by: Reverse Date, Date, Thread, Author