From owner-freebsd-ports Sun Aug 11 12:00:31 1996 Return-Path: owner-ports Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id MAA05577 for ports-outgoing; Sun, 11 Aug 1996 12:00:31 -0700 (PDT) Received: from hp.com (hp.com [15.255.152.4]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id MAA05571 for ; Sun, 11 Aug 1996 12:00:29 -0700 (PDT) Received: from srmail.sr.hp.com by hp.com with ESMTP (1.37.109.16/15.5+ECS 3.3) id AA242189985; Sun, 11 Aug 1996 11:59:45 -0700 Received: from hpnmhjw.sr.hp.com by srmail.sr.hp.com with ESMTP (1.37.109.16/15.5+ECS 3.3) id AA120959984; Sun, 11 Aug 1996 11:59:44 -0700 Received: from mina.sr.hp.com by hpnmhjw.sr.hp.com with SMTP (1.37.109.16/15.5+ECS 3.3) id AA109699983; Sun, 11 Aug 1996 11:59:43 -0700 Message-Id: <199608111859.AA109699983@hpnmhjw.sr.hp.com> To: Chuck Robey Cc: FreeBSD-Ports@freebsd.org Subject: Re: using tar In-Reply-To: Your message of "Sun, 11 Aug 1996 14:40:28 EDT." Date: Sun, 11 Aug 1996 11:59:42 -0700 From: Darryl Okahata Sender: owner-ports@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > On Sun, 11 Aug 1996 patl@asimov.volant.org wrote: > > An arguably better way to copy an entire directory tree within a single > > machine is: > > > > cd > > find . -depth -print | cpio -pdmv > > You aren't the first person to point that method out (Joerg told me about > it too) but I hadn't had any argument about it being 'arguably better'. > Could/would you expand on that? I don't know if I'd call it better, but it does have the optional advantage of being easy to filter/limit the files being copied (the actual files, that is -- not the contents). You can just insert some sed or perl commands into the pipeline to edit the list of files being copied. I've occasionally used this technique to copy source trees, but not any object files, archives, etc.. -- Darryl Okahata Internet: darrylo@sr.hp.com DISCLAIMER: this message is the author's personal opinion and does not constitute the support, opinion, or policy of Hewlett-Packard, or of the little green men that have been following him all day.