Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 10 Aug 1996 08:03:05 -0400 (EDT)
From:      Chuck Robey <chuckr@glue.umd.edu>
To:        "Jordan K. Hubbard" <jkh@time.cdrom.com>
Cc:        FreeBSD Ports <FreeBSD-Ports@FreeBSD.ORG>
Subject:   Re: using tar 
Message-ID:  <Pine.OSF.3.95.960810080224.2310A-100000@channel.eng.umd.edu>
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

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!
----------------------------+-----------------------------------------------




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.OSF.3.95.960810080224.2310A-100000>