Krolyxon
Commit 37a42db

Branches

Refs →

nsxiv37a42db

Added alternative empty directory removal command line to manpage, fixed issue #40

Author
Bert Münnich
Date
2012-03-02 19:32 +0100
Parent
497880e
Commit
37a42dba34db11374315951a72dc287a6f1a2129

+9 −0

1 file changed

  1. M sxiv.1 +9 −0
M sxiv.1 View
@@ -309,6 +309,15 @@ to remove empty subdirectories:
309309 .RS
310310 find \-type d \-empty \-delete
311311 .RE
312+.P
313+If the version of
314+.I find
315+installed on your local system does not support the \-delete option, then you
316+can also try the following command:
317+.P
318+.RS
319+find . \-depth \-type d \-empty ! \-name '.' \-exec rmdir {} \\;
320+.RE
312321 .SH AUTHORS
313322 .EX
314323 Bert Muennich <ber.t at gmx.com>