how to copy directories without files (was "How to copy files without directories")

Zbigniew Szalbot z.szalbot at lcwords.com
Mon Apr 20 12:38:58 UTC 2009


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


More information about the freebsd-questions mailing list