From owner-freebsd-questions@FreeBSD.ORG Mon Apr 20 18:31:01 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6447E106567A for ; Mon, 20 Apr 2009 18:31:01 +0000 (UTC) (envelope-from vogelke@hcst.com) Received: from beta.hcst.com (beta.hcst.com [192.52.183.241]) by mx1.freebsd.org (Postfix) with ESMTP id 0DDC08FC1F for ; Mon, 20 Apr 2009 18:31:00 +0000 (UTC) (envelope-from vogelke@hcst.com) Received: from beta.hcst.com (localhost [127.0.0.1]) by beta.hcst.com (8.13.8/8.13.8/Debian-3) with ESMTP id n3KIUxGQ012801 for ; Mon, 20 Apr 2009 14:30:59 -0400 Received: (from vogelke@localhost) by beta.hcst.com (8.13.8/8.13.8/Submit) id n3KIUxNx012800; Mon, 20 Apr 2009 14:30:59 -0400 Received: by kev.msw.wpafb.af.mil (Postfix, from userid 32768) id B4CDFBE7F; Mon, 20 Apr 2009 14:30:05 -0400 (EDT) To: freebsd-questions@freebsd.org In-reply-to: (z.szalbot@lcwords.com) Organization: Oasis Systems Inc. X-Disclaimer: I don't speak for the USAF or Oasis. X-GPG-ID: 1024D/711752A0 2006-06-27 Karl Vogel X-GPG-Fingerprint: 56EB 6DBF 4224 C953 F417 CC99 4C7C 7D46 7117 52A0 Message-Id: <20090420183005.B4CDFBE7F@kev.msw.wpafb.af.mil> Date: Mon, 20 Apr 2009 14:30:05 -0400 (EDT) From: vogelke+unix@pobox.com (Karl Vogel) Subject: Re: how to copy files without directories X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: vogelke+unix@pobox.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Apr 2009 18:31:02 -0000 Corrected by original poster - to copy directories without files, try this: % cd /source/dir % find . -type d -depth -print | pax -rwd -pe /dest/dir Permissions and modification times should be preserved. -- Karl Vogel I don't speak for the USAF or my company A codicil of lawyers --collective nouns, June 1999 LINGUIST