----- Original Message ----- From: "David Schultz" <das_at_FreeBSD.ORG> To: "Brian K. White" <brian_at_aljex.com> Cc: <freebsd-current_at_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_at_aljex.com -- http://www.aljex.com/bkw/ +++++[>+++[>+++++>+++++++<<-]<-]>>+.>.+++++.+++++++.-.[>+<---]>++. filePro BBx Linux SCO Prosper/FACTS AutoCAD #callahans SatrianiReceived on Tue Mar 29 2005 - 03:18:48 UTC
This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:30 UTC