how to copy files without directories

2009-04-20 Thread Zbigniew Szalbot
Dear all, I have read the cp manual and I cannot find an option how to copy directories without files they contain. Is this possible? Thank you very much! Zbigniew Szalbot ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org

Re: how to copy files without directories

2009-04-20 Thread Fernando Apesteguía
On 4/20/09, Zbigniew Szalbot z.szal...@lcwords.com wrote: Dear all, I have read the cp manual and I cannot find an option how to copy directories without files they contain. Is this possible? Maybe I read it wrong, but the subject and the paragraph above say two different things. Thank you

Re: how to copy files without directories

2009-04-20 Thread Zbigniew Szalbot
On Mon, 20 Apr 2009 13:22:38 +0200, Fernando ApesteguĂa fernando.apesteg...@gmail.com wrote: On 4/20/09, Zbigniew Szalbot z.szal...@lcwords.com wrote: Dear all, I have read the cp manual and I cannot find an option how to copy directories without files they contain. Is this possible? Maybe

Re: how to copy files without directories

2009-04-20 Thread Odhiambo ワシントン州
On Mon, Apr 20, 2009 at 2:12 PM, Zbigniew Szalbot z.szal...@lcwords.comwrote: Dear all, I have read the cp manual and I cannot find an option how to copy directories without files they contain. Is this possible? Thank you very much! I don't get your requirement. You'd like to copy empty

Re: how to copy files without directories

2009-04-20 Thread Patrick Lamaizière
Le Mon, 20 Apr 2009 13:24:42 +0200, Zbigniew Szalbot z.szal...@lcwords.com: Ahh... I am sorry. Wrong subject. I want to copy directories without files they contain. see mtree(8) Something like $ mtree -dc -p path1 | mtree -U -p path2 will copy path1 under path2

Re: how to copy files without directories

2009-04-20 Thread Odhiambo ワシントン州
directories without files they contain. Is this possible? Maybe I read it wrong, but the subject and the paragraph above say two different things. Ahh... I am sorry. Wrong subject. I want to copy directories without files they contain. For a directory tree, try my dose of medicine. I think it can

Re: how to copy files without directories

2009-04-20 Thread Odhiambo ワシントン州
2009/4/20 Patrick Lamaizière patf...@davenulle.org Le Mon, 20 Apr 2009 13:24:42 +0200, Zbigniew Szalbot z.szal...@lcwords.com: Ahh... I am sorry. Wrong subject. I want to copy directories without files they contain. see mtree(8) Something like $ mtree -dc -p path1 | mtree -U -p path2

Re: how to copy directories without files (was How to copy files without directories)

2009-04-20 Thread Zbigniew Szalbot
Hello, Ahh... I am sorry. Wrong subject. I want to copy directories without files they contain. see mtree(8) Something like $ mtree -dc -p path1 | mtree -U -p path2 will copy path1 under path2 Excellent! Thank you so much! Zbigniew Szalbot ___

Re: how to copy files without directories

2009-04-20 Thread Karl Vogel
Corrected by original poster - to copy directories without files, try this: % cd /source/dir % find . -type d -depth -print | pax -rwd -pe /dest/dir Permissions and modification times should be preserved. -- Karl Vogel I don't speak for the USAF or my company A codicil