Date: Wed, 21 Dec 2005 14:50:09 -0600 From: Dan Nelson <dnelson@allantgroup.com> To: Ashok Shrestha <ashok.shrestha@gmail.com> Cc: hackers@freebsd.org Subject: Re: copy directory structure Message-ID: <20051221205009.GD17476@dan.emsphone.com> In-Reply-To: <79e2026f0512211237i4cdd2c70yc0923959d7ec1c98@mail.gmail.com> References: <79e2026f0512211237i4cdd2c70yc0923959d7ec1c98@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
In the last episode (Dec 21), Ashok Shrestha said: > Do you know how to copy just a directory structure (not the files > inside it)? One way would be using mtree: "mtree -d -c -p /path | mtree -U -p /otherpath". You could also do it with find and tar: "cd /path ; find . -type d | tar Tcfn - - | ( cd /otherpath ; tar xf - )" -- Dan Nelson dnelson@allantgroup.com
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20051221205009.GD17476>