Cameron Simpson wrote:
> 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.

Hooray for simplicity. :)

> People always seem to forget that rmdir is perfectly safe, in that
> it won't remove empty directories.

I'm sure you meant just the opposite.  It won't remove non-empty dirs.

-- 
Todd        OpenPGP -> KeyID: 0xBEAF0CE3 | URL: www.pobox.com/~tmz/pgp
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
That men do not learn very much from the lessons of history is the
most important of all the lessons of history.
    -- Aldous Huxley Collected Essays, 1959

Attachment: pgp0zq36D0iq5.pgp
Description: PGP signature

Reply via email to