SYNOPSIS
find [-H] [-L] [-P] [-D debugopts] [-Olevel] [path...] [express
+ion]
<...>
find: paths must precede expression
So, first, move all your paths to search into before any expressions. Next, replace -exec rm -rf {} ; with -ls in order to debug your expression and make sure it finds only what you want to delete. Next, run and check that your command runs and returns expected results. Finally, move -exec rm -rf {} ; back in its place.
You can also use find2perl to make a Perl program from find expression or start manually using File::Find instead.
Sorry if my advice was wrong.
|