Date: Fri, 09 Aug 1996 22:18:37 -0700 From: "Jordan K. Hubbard" <jkh@time.cdrom.com> To: Chuck Robey <chuckr@glue.umd.edu> Cc: FreeBSD Ports <FreeBSD-Ports@FreeBSD.ORG> Subject: Re: using tar Message-ID: <11835.839654317@time.cdrom.com> In-Reply-To: Your message of "Sat, 10 Aug 1996 00:52:39 EDT." <Pine.OSF.3.95.960810004936.774A-100000@modem.eng.umd.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
> I want to use tar to move a directory hierarchy, but I want to do it > without using a temp directory, and I don't know the syntax to make tar > create an archive to stdout, then read from stdout to extract the acrchive I was all prepared to flame you for not RTFM'ing first when I noticed that both the tar man page and `tar --help' don't document this in their descriptions of the -f flag. For Shame. tar -cf - -C $SRCDIR . | tar xpf - -C $DESTDIR Will do the trick. Jordan
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?11835.839654317>