[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [leafnode-list] Monster directory hierarchy
Laura (mailto:lconrad@xxxxxxxxxxxxx , http://www.world.std.com/~lconrad/ ):
> I would use:
> find <dirname> -type d | xargs rmdir
I would use
find <dirname> -depth -type d -print | xargs rmdir
"-depth" means it goes after the lowest-level directories first.
That way, a directory which contains only empty directories will
get clobbered.
"-print" because I'm used to old "find"s where it wasn't implied
under any conditions.
--
Tim McDaniel is tmcd@xxxxxxxx; if that fail,
tmcd@xxxxxxxxxx is my work account.
--
leafnode-list@xxxxxxxxxxxxxxxxxxxxxxxxxxxx -- mailing list for leafnode
To unsubscribe, send mail with "unsubscribe" in the subject to the list