Mailinglist Archive: opensuse (2831 mails)

< Previous Next >
Re: [SLE] Duplicating a directory structure
  • From: Jerry Feldman <gaf@xxxxxxx>
  • Date: Thu, 27 Jul 2006 16:34:14 -0400
  • Message-id: <200607271634.14208.gaf@xxxxxxx>
On Thursday 27 July 2006 2:51 pm, Marlier, Ian wrote:

> Hrm...except that those are going to bring the files with them -- I just
> want an empty directory tree.
> Is there a flag for either tar or cp that tells it to only see/move
> directories, and not files?
Try this. I had forgotten about cpio. This works including copying
directories with embedded spaces.

find . -type d | cpio -pdum TARGET_DIRECTORY
Jerry Feldman <gaf@xxxxxxx>
Boston Linux and Unix user group PGP key id:C5061EA9
PGP Key fingerprint:053C 73EC 3AC1 5C44 3E14 9245 FB00 3ED5 C506 1EA9

Check the headers for your unsubscription address
For additional commands send e-mail to suse-linux-e-help@xxxxxxxx
Also check the archives at
Please read the FAQs: suse-linux-e-faq@xxxxxxxx

< Previous Next >