On Sun, Jun 03, 2001 at 09:30:03AM -0700, Russell Senior wrote:
> >>>>> "Karl" == Karl M Hegbloom <[EMAIL PROTECTED]> writes:
> 
> Karl> [EMAIL PROTECTED]:~ # time (cd /usr/local/src/ && tar pcf -
> Karl> cvs.gnome.org) | (cd /mnt/tmp/src/ && tar pxf -) 
> 
> Just for your reference, there is a tar option that makes your shell
> construction much easier:
> 
>   tar -C /usr/local/src -pcf - cvs.gnome.org | tar -C /mnt/tmp/src -pxf -
> 
> Note: 
> 
>   a) the usually optional `-' preceding the option characters is
>      needed since the -C option (to change cwd for the operation)
>      means things aren't in the priveleged spot anymore.

Eh?

  tar Cpcf /usr/local/src - cvs.gnome.org

should do the same thing you wrote.

-- 
Nathan Norman - Staff Engineer | A good plan today is better
Micromuse Ltd.                 | than a perfect plan tomorrow.
mailto:[EMAIL PROTECTED]   |   -- Patton

Attachment: pgpXsTuGM69Ic.pgp
Description: PGP signature

Reply via email to