Re: copy directory structure

2005-12-23 Thread Ashok Shrestha
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

Re: copy directory structure

2005-12-23 Thread Julian Elischer
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

Re: copy directory structure

2005-12-22 Thread Oliver Fromme
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

copy directory structure

2005-12-21 Thread Ashok Shrestha
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]

copy directory structure

2005-12-21 Thread Ashok Shrestha
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]

Re: copy directory structure

2005-12-21 Thread Dan Nelson
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 - - | (

Re: copy directory structure

2005-12-21 Thread Doug Barton
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

Re: copy directory structure

2005-12-21 Thread Mario Lobo
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]