Follow-up Comment #9, bug #42985 (project findutils): > find $(pwd) . -mindepth 1 -maxdepth 1 -regex $cpat -prune -o -exec rm -rfv {} \+ >/dev/null 2>../error.log
The documentation explains why you should not do that. 9.3 Cleaning Up =============== This section gives examples of removing unwanted files in various situations. Here is a command to remove the CVS backup files created when an update requires a merge: find . -name '.#*' -print0 | xargs -0r rm -f If your 'find' command removes directories, you may find that you get a spurious error message when 'find' tries to recurse into a directory that has now been removed. Using the '-depth' option will normally resolve this problem. _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?42985> _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/