Re: Tar Command???

Gary (gary@hroads.net)
Thu, 4 Dec 1997 02:58:19 -0500 (EST)


On Wed, 3 Dec 1997, Dale R. Henninger wrote:

> What is the tar command string to move files from one place to another
> using STDIN/OUT so that you don't actually create a tar file?
>
> I have it my notes:
> cd /dir1;tar cpf - . | cd /dir2;tar xpf -
> But I get broken pipe...

You almost have it, try it with parentheses:

cd /dir1;tar cpf - . |(cd /dir2;tar xpf -)

______________________________________________________________
/ Gary Swofford - Hampton Roads Online - Yorktown Virginia USA )
/ http://www.hroads.net (757) 591-5300 /
(______________ System/Network/Web Administrator ______________/