From owner-freebsd-current@FreeBSD.ORG Mon Mar 28 15:03:38 2005 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6BAA916A4CE for ; Mon, 28 Mar 2005 15:03:38 +0000 (GMT) Received: from galilee.polands.org (CPE-24-208-53-189.new.rr.com [24.208.53.189]) by mx1.FreeBSD.org (Postfix) with ESMTP id 961D943D3F for ; Mon, 28 Mar 2005 15:03:37 +0000 (GMT) (envelope-from djp@polands.org) Received: from jericho.polands.org ([172.16.1.35]) by galilee.polands.org (8.12.9/8.12.9) with ESMTP id j2SF3BoR046841; Mon, 28 Mar 2005 09:03:20 -0600 (CST) (envelope-from djp@polands.org) Received: from jericho.polands.org (localhost [127.0.0.1]) by jericho.polands.org (8.13.3/8.13.1) with ESMTP id j2SF3AfA067605; Mon, 28 Mar 2005 09:03:10 -0600 (CST) (envelope-from djp@jericho.polands.org) Received: (from djp@localhost) by jericho.polands.org (8.13.3/8.13.1/Submit) id j2SF3Arc067604; Mon, 28 Mar 2005 09:03:10 -0600 (CST) (envelope-from djp) Date: Mon, 28 Mar 2005 09:03:10 -0600 From: Doug Poland To: "Brian K. White" Message-ID: <20050328150310.GB67470@polands.org> References: <20050327223238.GA749@polands.org> <010401c53385$584a04c0$6800000a@venti> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <010401c53385$584a04c0$6800000a@venti> User-Agent: Mutt/1.5.9i cc: freebsd-current@freebsd.org Subject: Re: Heads up: gtar gone from base system X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Mar 2005 15:03:38 -0000 On Mon, Mar 28, 2005 at 05:59:59AM -0500, Brian K. White wrote: > > ----- Original Message ----- > From: "Doug Poland" > To: "Doug Barton" > Cc: > Sent: Sunday, March 27, 2005 5:32 PM > Subject: Re: Heads up: gtar gone from base system > > > >On Sat, Mar 26, 2005 at 06:16:24PM -0800, Doug Barton wrote: > >>On Fri, 25 Mar 2005, Doug Poland wrote: > >> > >>>There are some examples in the gtar man page that would be nice to have > >>>in bsdtar. > >> > >>Given that "some examples" have already been implemented, I think we're > >>covered here. :) If you want something more specific, you'll have to > >>provide a little more information. > >> > >OK, the example I cannot live without... > > > > > > To move file hierarchies, use a command line like this: > > > > tar -cf - -C srcdir . | tar xpf - -C destdir > > Why not? > Isn't that just a slight convenience for this?: > cd srcdir ; tar cf - . |( cd destdir ; tar xpf - ) > > It looks equivalent saying you cannot live without -j or -z ? > now if "cd" ever decides to eat even one character from stdin that'd be > different :) > I can't remember the syntactical variations of using tar to move directory hierarchies. I can, however, remember that the man page for tar has a working example ;) -- Regards, Doug