[plug] Command drama

Michael Holland myk at myk.id.au
Mon Nov 20 10:59:55 WST 2006


On Mon, 20 Nov 2006, garry wrote:

> Can anyone help me?
>
> I've been trying to copy just a directory structure, without the files..

The usual tool for that kind of thing is 'find' . Its worth reading the
whole man page if you are a linux user. NB '-type d' and '-exec' and
see the examples for a quick start.

> input to mkdir -p, but is there a simpler way I'm missing?

In zsh you might "cp -a **/*(/) dest".  But 'find' avoids the problem of
"too many args" if it is a large structure.



More information about the plug mailing list