From owner-freebsd-questions@FreeBSD.ORG Wed Dec 22 23:10:51 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DB8FF16A4CE for ; Wed, 22 Dec 2004 23:10:51 +0000 (GMT) Received: from seadragon.mweb.co.za (seadragon.mweb.co.za [196.2.45.68]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7571F43D31 for ; Wed, 22 Dec 2004 23:10:51 +0000 (GMT) (envelope-from ASingh@DigitalXP.co.za) Received: from assocsoft0001 (c1-76-1.pmb.dial.mweb.co.za [196.23.34.76]) by seadragon.mweb.co.za (Postfix) with ESMTP id B65CC83221 for ; Thu, 23 Dec 2004 01:10:16 +0200 (SAST) From: "Singh, Ajith (ZA - Pietermaritzburg)" To: Date: Thu, 23 Dec 2004 01:10:16 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook, Build 11.0.5510 Thread-Index: AcToLWdzVwmbp2ojTfiOfh7D7k+RLQASDsGAAAFt02A= In-Reply-To: X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 Message-Id: <20041222231016.B65CC83221@seadragon.mweb.co.za> Subject: RE: Copying a directory hierarchy X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: ASingh@DigitalXP.co.za List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Dec 2004 23:10:52 -0000 Have you tried pax -rw . destination_dir ? AJITH SINGH Pietermaritzburg, South Africa -----Original Message----- From: owner-freebsd-questions@freebsd.org [mailto:owner-freebsd-questions@freebsd.org] On Behalf Of Lowell Gilbert Sent: 22 December 2004 03:51 PM To: Mike Jeays Cc: Robert Huff; freebsd-questions@freebsd.org Subject: Re: Copying a directory hierarchy Mike Jeays writes: > On Tue, 2004-12-21 at 21:08, Robert Huff wrote: > > Mike Jeays writes: > > > > > How does on copy a complete directory hierarchy, including any hidden > > > files? > > > > > > "cp -rp" leaves them out. > > > > cp -rp * > > cp -rp .* > This doesn't copy hidden files in lower-level directories, only in the > top level. Thanks for the suggestion - a good idea that doesn't quite > do it. It works for me... temp> type -a rm rm is /bin/rm temp> mkdir -p a/b/c/d/e temp> touch a/b/c/d/.hidden a/b/c/d/e/.hidden-too temp> cp -r a f temp> find a f a a/b a/b/c a/b/c/d a/b/c/d/e a/b/c/d/e/.hidden-too a/b/c/d/.hidden f f/b f/b/c f/b/c/d f/b/c/d/e f/b/c/d/e/.hidden-too f/b/c/d/.hidden temp> _______________________________________________ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"