Thank you All.
On 12/22/05, Oliver Fromme [EMAIL PROTECTED] wrote:
Ashok Shrestha [EMAIL PROTECTED] wrote:
Do you know how to copy just a directory structure (not the files inside
it)?
The following is probably the easiest and most efficient way
($SRC and $DST are the source and
Ashok Shrestha wrote:
Thank you All.
On 12/22/05, Oliver Fromme [EMAIL PROTECTED] wrote:
Ashok Shrestha [EMAIL PROTECTED] wrote:
Do you know how to copy just a directory structure (not the files inside it)?
The following is probably the easiest and most efficient way
($SRC and $DST are
Ashok Shrestha [EMAIL PROTECTED] wrote:
Do you know how to copy just a directory structure (not the files inside it)?
The following is probably the easiest and most efficient way
($SRC and $DST are the source and destination directories):
cd $SRC; find . -type d | cpio -dumpl $DST
It will
Do you know how to copy just a directory structure (not the files inside it)?
--
Ashok Shrestha
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]
Do you know how to copy just a directory structure (not the files inside it)?
--
Ashok Shrestha
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]
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 - - | (
Ashok Shrestha wrote:
Do you know how to copy just a directory structure (not the files inside it)?
This is better suited for freebsd-questions@, but I'll give you a hint, the
answer should probably involve find. :)
Good luck,
Doug
--
This .signature sanitized for your protection
use this:
tar -vpcf - -C source-dir . | tar xpf - -C destination-dir
destination-dir must exist.
This will copy everything inside source-dir to destination-dir.
--
//| //||
// | // ||
-//--//--|| ARIO LOBO
// //||
-
[EMAIL PROTECTED]
8 matches
Mail list logo