Date: Tue, 29 Mar 2005 00:18:16 -0500 From: "Brian K. White" <brian@aljex.com> To: <freebsd-current@FreeBSD.ORG> Subject: Re: Heads up: gtar gone from base system Message-ID: <022c01c5341e$c68a1ad0$6800000a@venti> References: <20050327223238.GA749@polands.org><010401c53385$584a04c0$6800000a@venti> <20050329041527.GA9586@VARK.MIT.EDU>
next in thread | previous in thread | raw e-mail | index | archive | help
----- Original Message ----- From: "David Schultz" <das@FreeBSD.ORG> To: "Brian K. White" <brian@aljex.com> Cc: <freebsd-current@FreeBSD.ORG> Sent: Monday, March 28, 2005 11:15 PM Subject: Re: Heads up: gtar gone from base system > On Mon, Mar 28, 2005, Brian K. White wrote: >> > 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 - ) > > detsdir: No such file or directory. would -C have created it if it didn't exist? if C means change to a dir first, I would read that as implying that the dir exists to cd into. otherwise it's a convenience for this: cd srcdir ; tar cf - . |( [ -d destdir ] || mkdir -p destdir ;cd destdir ; tar xpf - ) which I'd agree is no longer a slight convenience In any event, we now know the feature was there, merely not demonstrated. Brian K. White -- brian@aljex.com -- http://www.aljex.com/bkw/ +++++[>+++[>+++++>+++++++<<-]<-]>>+.>.+++++.+++++++.-.[>+<---]>++. filePro BBx Linux SCO Prosper/FACTS AutoCAD #callahans Satriani
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?022c01c5341e$c68a1ad0$6800000a>