Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: matching all files which do not have a dot in filename
- X-seq: zsh-users 7928
- From: DervishD <disposable1@xxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: matching all files which do not have a dot in filename
- Date: Thu, 26 Aug 2004 11:01:09 +0200
- In-reply-to: <Pine.LNX.4.61.0408241505050.11075@xxxxxxxxxxxxxxxxxx>
- Mail-followup-to: zsh-users@xxxxxxxxxx
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- Organization: Pleyades
- References: <slrncin6pk.im5.usenet@xxxxxxxxx> <20040824210752.GK7841@xxxxxxxxxxxxx> <Pine.LNX.4.61.0408241505050.11075@xxxxxxxxxxxxxxxxxx>
Hi Bart :)
* Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> dixit:
> > First I thought of this: **/*~*.* - but that doesn't work since it
> > includes sub-directories which I dont want to get matched. So I tried
> > **/*(.)~*.* to just match files - but zsh says that doesn't work.
> Did you try **/*~*.*(.) ? I think you have the glob qualifier in the
> wrong place. However, that will omit all files underneath directories
> with dots in the directory name, which may not be what you meant.
And, how about **/(*~*.*)(.)? I've tested here with subdirs
having dots in their names and _seems_ to work...
> > With EXTENDED_GLOB set: [^.]#
> Or **/[^.]#(.) for all such plain files in the tree.
Shorter and simpler ;)
Raúl Núñez de Arenas Coronado
--
Linux Registered User 88736
http://www.pleyades.net & http://raul.pleyades.net/
Messages sorted by:
Reverse Date,
Date,
Thread,
Author