[svlug] Re: Mass copying

Dave Zarzycki dave at zarzycki.org
Sat Mar 17 13:18:02 PST 2001


On Sat, 17 Mar 2001, Aaron Lehmann wrote:

> The only advantage of gzip in this sitation that I can think of is the
> reduction of data sent through the pipe.

Umm... Have you ever looked at how GNU tar implements gzip compression? It
pipes the data through gzip.

Therefore:

(cd foo;tar czf - .)|(cd bar;tar xzf -)

...is the same as:

(cd foo;tar cf - .)|gzip|gzip -d|(cd bar;tar xf -)


davez

-- 
Dave Zarzycki
http://thor.sbay.org/~dave/





More information about the svlug mailing list