Re: Find and excluding directory

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



> Your "-path" argument is wrong.  Try this:
>
>       find /var/data/foo -path '/var/data/foo/.snapshot' -prune -o -exec chown
> usera:groupb {} +
>
> You need the whole path, and there is no need to escape the '.' character.
> I've also used "+" as the terminator.  That's just an efficiency issue.  It
> makes 'find' build command lines with as many matches as will fit rather
> than invoking 'chown' separately for each one.
>
>    

Hi Robert

many thanks - that resolved ths issue for me

tom


_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux