[plug] Copying a directory tree without the files
James Bromberger
james at rcpt.to
Wed Jan 9 23:55:45 WST 2002
On Wed, Jan 09, 2002 at 11:45:56PM +0800, Matt Kemner wrote:
> > b) copy the tree (minus the files) to a template location.
> for X in `find /source_dir -type d`
> do
> mkdir /target_dir/$X
> done
cd /source_dir; find . -type d -exec mkdir /dest_dir/{} \;
Or something...
James
--
James Bromberger <james_AT_rcpt.to> www.james.rcpt.to
Australian Debian Conference: http://www.linux.org.au/conf/debiancon.html
Remainder moved to http://www.james.rcpt.to/james/sig.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 232 bytes
Desc: not available
URL: <http://lists.plug.org.au/pipermail/plug/attachments/20020109/ea433dad/attachment.pgp>
More information about the plug
mailing list