[LBo] Command (or option) to create an empty directory structure duplicating an existing directory structure

Randy Kramer rhkramer at gmail.com
Wed Nov 15 15:16:23 CET 2006


I'm quite certain that, once upon a time, I ran across a command (or an option 
to a familiar command) that would allow me to (easily) create an empty copy 
of an existing directory structure.  Can anybody remind of that command or 
option?

I'm sure I could do it with find, and I might resort to that (I'm playing with 
find anyway to do part of the job I'm doing), but that other command would 
seem to be much simpler.  I'm doing some googling, and I've at least 
re-skimmed the man pages for cp, mkdir, ls (for no good reason), and cpio.

The command I'm looking for is not mirrordir--that copies files as well--I 
just want a duplicate empty directory structure.

My system does not have tree installed, so I'm now googling for that--maybe 
that's what I'm looking for.  Just thought I'd ask here, maybe somebody knows 
off the top of their head.

Randy Kramer


More information about the QnA mailing list