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

Re: matching all files which do not have a dot in filename



    Hi Julius :)

 * Julius Plenz <usenet@xxxxxxxxx> 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.

    Try (if you want recursion at all) **/*~*.*(.) The glob modifier
affects the entire glob expression, so the above means 'match all
files no matter its name except if they have a dot in their name'.

    Hope that helps :) (here does).

    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