Date: Sat, 10 Aug 1996 12:08:35 +0300 (EET DST) From: Narvi <narvi@haldjas.folklore.ee> To: "Jordan K. Hubbard" <jkh@time.cdrom.com> Cc: Chuck Robey <chuckr@glue.umd.edu>, FreeBSD Ports <FreeBSD-Ports%FreeBSD.ORG@sunrise.cs.berkeley.edu> Subject: Re: using tar Message-ID: <Pine.BSF.3.91.960810120555.13368M-100000@haldjas.folklore.ee> In-Reply-To: <11835.839654317@time.cdrom.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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 > > Will do the trick. > Why not just mv $SRCDIR $DESTDIR? Yes, if $DESTDIR exist you will have to write a for $i in ...; do mv $i $DESTDIR; done? Sander > Jordan >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.91.960810120555.13368M-100000>