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

_______________________________________________
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to