[4061] in Athena Bugs

home help back first fref pref prev next nref lref last post

find -rm doesn't deal with dirs

daemon@ATHENA.MIT.EDU (Richard Basch)
Sat Jan 27 21:17:58 1990

Date: Sat, 27 Jan 90 21:17:45 -0500
To: bugs@ATHENA.MIT.EDU
From: Richard Basch <probe@MIT.EDU>

Version: 6.4R

If you have nested subdirectories, a find -rm will not remove the top
level directory because there are children directories.  (An rm -rf is
not the correct solution, because in some cases, I want it to fail...
for instance, remove all things that are greater than a week old,
including the directories).

Possible (and simple) fix:

Have "find" process directories last.

-Richard

home help back first fref pref prev next nref lref last post