in reply to Re: (golf) Recursively delete empty directories from a tree
in thread (golf) Recursively delete empty directories from a tree
which helps alot with the funky character problem. also there's the '-exec' option to find.find . -type d -depth -print0 | xargs -0 prog
which (i think) bypasses the shell so funky characters are no problem. the '--' option is handy to turn off further argument processing so a directory like '-r' isn't taken as a flag.find . -type d -depth -exec rmdir -- {} \;
|
|---|