From owner-freebsd-ports Fri Aug 9 22:19:22 1996 Return-Path: owner-ports Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id WAA04801 for ports-outgoing; Fri, 9 Aug 1996 22:19:22 -0700 (PDT) Received: from time.cdrom.com (time.cdrom.com [204.216.27.226]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id WAA04796 for ; Fri, 9 Aug 1996 22:19:20 -0700 (PDT) Received: from time.cdrom.com (localhost [127.0.0.1]) by time.cdrom.com (8.7.5/8.6.9) with ESMTP id WAA11837; Fri, 9 Aug 1996 22:18:38 -0700 (PDT) To: Chuck Robey cc: FreeBSD Ports Subject: Re: using tar In-reply-to: Your message of "Sat, 10 Aug 1996 00:52:39 EDT." Date: Fri, 09 Aug 1996 22:18:37 -0700 Message-ID: <11835.839654317@time.cdrom.com> From: "Jordan K. Hubbard" Sender: owner-ports@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > 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