Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 20 Apr 2009 14:38:49 +0200
From:      "Zbigniew Szalbot" <z.szalbot@lcwords.com>
To:        =?utf-8?Q?Patrick_Lamaizi=C3=A8re?= <patfbsd@davenulle.org>, "User Questions" <freebsd-questions@freebsd.org>
Subject:   Re: how to copy directories without files (was "How to copy files without directories")
Message-ID:  <op.usoqqzch89vefu@toshizbyszek.lists.lc-words.com>
In-Reply-To: <20090420134758.065018ea@baby-jane.lamaiziere.net>
References:  <op.usomrdzw89vefu@toshizbyszek.lists.lc-words.com> <1bd550a00904200422od3776c8ge59127854e10fac4@mail.gmail.com> <op.usonbgwz89vefu@toshizbyszek.lists.lc-words.com> <20090420134758.065018ea@baby-jane.lamaiziere.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?op.usoqqzch89vefu>