in reply to (golf) Recursively delete empty directories from a tree
If you modify it to:`find @ARGV -type d -depth | xargs rmdir`;
it'll tell you the amount of directories not removed.`find @ARGV -type d -depth | xargs rmdir 2>&1 | wc -l`;
Abigail
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: (golf) Recursively delete empty directories from a tree
by Anonymous Monk on Feb 19, 2004 at 05:23 UTC |