Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Tip of the day: prune empty directory hierarchies



2015-06-29 14:59:27 +0000, Peter Stephenson:
[...]
> # Prune empty directory hierarchies below the current directory.  That's
> # a hierarchy where everything underneath is itself a directory.
[...]

If you don't mind the error messages,

rmdir -p -- **/*(D/^F)

should work (I think).

-- 
Stephane



Messages sorted by: Reverse Date, Date, Thread, Author