Date: Sat, 29 Jul 2006 13:29:56 -0700 From: Tim Kientzle <kientzle@freebsd.org> To: Eric Anderson <anderson@centtech.com> Cc: FreeBSD Hackers <freebsd-hackers@freebsd.org> Subject: Re: [PATCH] adding two new options to 'cp' Message-ID: <44CBC544.4090500@freebsd.org> In-Reply-To: <44C82A40.3020009@centtech.com> References: <44C82A40.3020009@centtech.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Eric Anderson wrote: > So, you can mimic an entire tree with something like: > cp -al /from/ /to/ pax -rwl -pe /from /to is almost what you want. (It requires that /to exist first, though.) If you want to match the 'cp' semantics when /to does not exist, you can use pax's rewrite option: pax -rwl -pe -s|/from|/to| /from / As a bonus, this works on any machine that meets POSIX, unlike every other option that's been mentioned in this thread (tar and cpio were both dropped from the POSIX standard a decade ago). Tim
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?44CBC544.4090500>