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

Re: [leafnode-list] Monster directory hierarchy

> David Given wrote:
> > Is it safe to go through and delete all directories and subdirectories that 
> > don't contain files?
> Yes. (How did you accomplish this?)
> --Cornelius.

find -d /var/spool/news -type d -exec rmdir \{\} \;

would work nicely. The rmdir would generate an error message for
each non-empty directory, but I'm willing to tolerate that for a simple
one-shot command.

John Cochran

leafnode-list@xxxxxxxxxxxxxxxxxxxxxxxxxxxx -- mailing list for leafnode
To unsubscribe, send mail with "unsubscribe" in the subject to the list