On 07Dec2007 08:12, Patrick Shanahan <[EMAIL PROTECTED]> wrote: | * Cameron Simpson <[EMAIL PROTECTED]> [12-07-07 01:38]: | > Yeah, but without even invoking find: | > | > rmdir dir/new dir/tmp dir/cur dir \ | > || mkdir -p dir/new dir/tmp dir/cur | > | > Robust, safe, trivial. | > | > People always seem to forget that rmdir is perfectly safe, in that it | > won't remove empty directories. | ^^^^^^^^^^^ | *only* removes empty directories :^) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
Thank you Todd and Patrick! Code correct, documentation busted! -- Cameron Simpson <[EMAIL PROTECTED]> DoD#743 http://www.cskk.ezoshosting.com/cs/ "I wish it need not have happened in my time," said Frodo. "So do I," said Gandalf, "and so do all who live to see such times. But that is not for them to decide. All we have to decide is what to do with the time that is given us."