9fans archive / 1996 / 08 / 36 /    prev next

From: Nigel Roles ngr@sym...
Subject: Copying files..
Date: Mon, 19 Aug 1996 15:18:33 +0100

> 
> I have been able to mount the CD-ROM (thanks to Nigel). I want to
> copy selected subtrees to hard-disk. Cp command has no -[rR] flag
> so how do I do it?
>    cp source-subtree dest-subtree
> 
>

Now this one I can get right. Real programmers don't use cp -r!

{cd source-subtree; tar c .} | {cd dest-subtree; tar x}

or see

http://plan9.att.com/magic/man2html/1/tar

Nigel Roles