From owner-freebsd-ports Sat Aug 10 05:03:10 1996 Return-Path: owner-ports Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id FAA13161 for ports-outgoing; Sat, 10 Aug 1996 05:03:10 -0700 (PDT) Received: from po2.glue.umd.edu (po2.glue.umd.edu [129.2.128.45]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id FAA13155 for ; Sat, 10 Aug 1996 05:03:08 -0700 (PDT) Received: from channel.eng.umd.edu (channel.eng.umd.edu [129.2.98.186]) by po2.glue.umd.edu (8.7.5/8.7.3) with ESMTP id IAA06172; Sat, 10 Aug 1996 08:03:06 -0400 (EDT) Received: from localhost (chuckr@localhost) by channel.eng.umd.edu (8.7.5/8.7.3) with SMTP id IAA02316; Sat, 10 Aug 1996 08:03:05 -0400 (EDT) X-Authentication-Warning: channel.eng.umd.edu: chuckr owned process doing -bs Date: Sat, 10 Aug 1996 08:03:05 -0400 (EDT) From: Chuck Robey X-Sender: chuckr@channel.eng.umd.edu To: "Jordan K. Hubbard" cc: FreeBSD Ports Subject: Re: using tar In-Reply-To: <11835.839654317@time.cdrom.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-ports@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Fri, 9 Aug 1996, Jordan K. Hubbard wrote: > > 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 I know, I did rtfm. Now I'll add this to tar man page, ok? > > Will do the trick. > > Jordan > ----------------------------+----------------------------------------------- Chuck Robey | Interests include any kind of voice or data chuckr@eng.umd.edu | communications topic, C programming, and Unix. 9120 Edmonston Ct #302 | Greenbelt, MD 20770 | I run Journey2 and n3lxx, both FreeBSD (301) 220-2114 | version 2.2 current -- and great FUN! ----------------------------+-----------------------------------------------