[CentOS] find with exclude directory
Nicolas Thierry-Mieg
Nicolas.Thierry-Mieg at imag.frTue May 13 06:50:56 UTC 2014
- Previous message: [CentOS] find with exclude directory
- Next message: [CentOS] find with exclude directory
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
> On Mon, May 12, 2014 at 4:44 AM, Tim Dunphy <bluethundr at gmail.com> wrote: > >> Thanks. But what if I want to turn that statement into one that will delete >> everything it finds? I need to preserve the contents of that directory. >> >> As in : find / -path '/usr/local/digitalplatform/*' -prune -o -name >> "*varnish*" -exec rm -rfv {} \; >> try something along the lines of: find / -regex '.*varnish.*' ! -regex '/usr/local/digitalplatform/.*'
- Previous message: [CentOS] find with exclude directory
- Next message: [CentOS] find with exclude directory
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the CentOS mailing list