Re: script question
Lawrence wrote:
:can any script expert help me.
:
:i want to remove directories iff they are empty, what is the easy way to
:do it?
find . -type d -exec rmdir {} \;
The rmdir will fail on directories containing files, so that only empty
directories below the current directory will be removed.
Bye,
--
Thomas Baetzler, thb@regioservice.de, bath0011@fh-karlsruhe.de
<A HREF="http://www.fh-karlsruhe.de/~bath0011/>Visit my Homepage!</A>
"The cowards never came, and the weaklings died on the way" - R.A.H.
--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-user-request@lists.debian.org .
Trouble? e-mail to templin@bucknell.edu .
Reply to: