From owner-freebsd-questions Thu Mar 13 11:31:01 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id LAA16019 for questions-outgoing; Thu, 13 Mar 1997 11:31:01 -0800 (PST) Received: from cedb.dpcsys.com (cedb.DPCSYS.com [209.25.4.3]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id LAA16011 for ; Thu, 13 Mar 1997 11:30:59 -0800 (PST) Received: from localhost (dan@localhost) by cedb.dpcsys.com (8.8.5/8.8.2) with SMTP id TAA12775; Thu, 13 Mar 1997 19:27:57 GMT Date: Thu, 13 Mar 1997 11:27:56 -0800 (PST) From: Dan Busarow To: Lee Crites cc: Doug White , Dan Wolfe , "'questions@freebsd.org'" Subject: Re: Creating a directory link from one partition to another In-Reply-To: <1.5.4.32.19970313155810.006a9ce0@jump.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk On Thu, 13 Mar 1997, Lee Crites wrote: > cd /source/directory > tar -cf - . | ( cd /target/directory ; tar -xvf - ) > > I know, I know, the -C says to change to this directory before doing the > work. It's a beautiful thing. And, I assume, it is valid on FreeBSD. But, > unfortunately, it is not a *universal* thing. Since my scripts must work on > multiple platforms, I can't use it. This should work every where. cd /source/dir find . -depth -print | cpio -pdmv /tar/get/dir Dan -- Dan Busarow 714 443 4172 DPC Systems / Beach.Net dan@dpcsys.com Dana Point, California 83 09 EF 59 E0 11 89 B4 8D 09 DB FD E1 DD 0C 82