[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: how to exclude a directory from find?



On Thu, 12 Sep 1996 Lazaro.Salem@rf.no wrote:

>  Certainly it would be nice to have something like:
>  $ find . -type !d  
>  to match files which are not directories, but I don't know if something 
>  like that is possible for find. So if can take your question and rephrase 
>  it: 
>  
>  Is there any kind of "logical not" affecting a flag in find? 

Yes, see the operators section in the find manpage.
Above would be
$ find . ! -type d


Guy



Reply to: