bug-findutils
[Top][All Lists]
Advanced

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

Re: Find Command


From: James Youngman
Subject: Re: Find Command
Date: Thu, 11 Jan 2007 16:10:45 +0000

On 1/11/07, Bob Proulx <address@hidden> wrote:
Try this instead.

  find /some/path -depth -type d -empty -print
  find /some/path -depth -type d -empty -exec rmdir {} \;

Exactly.   You can also use -delete:

find /some/path -depth -type d -empty -delete -o -printf "Failed to delete %p\n"

The -delete action automatically turns on -depth.

James.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]