From owner-freebsd-questions@FreeBSD.ORG Mon Apr 20 11:25:08 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 A7821106567E for ; Mon, 20 Apr 2009 11:25:08 +0000 (UTC) (envelope-from odhiambo@gmail.com) Received: from mail-bw0-f165.google.com (mail-bw0-f165.google.com [209.85.218.165]) by mx1.freebsd.org (Postfix) with ESMTP id 2F9B78FC17 for ; Mon, 20 Apr 2009 11:25:07 +0000 (UTC) (envelope-from odhiambo@gmail.com) Received: by bwz9 with SMTP id 9so1287840bwz.43 for ; Mon, 20 Apr 2009 04:25:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=utWmaSocWo8FchrPsGKgICa3kkfqWNqUXcoe244+UC0=; b=VYPsZ1fiFb1uOnXuk6l166gDJMKeUcElp2gSgft1ZRi39+z5V1uTDwWsm2JBLl2m49 AHKtSnA0TjxENNpEFykz+qZGNzALcMECf6S59+M641IKGzYsjTNVAFHeOh8AZa/+iK2T g9etAHZx9nJXH6OEYdHWa0N0miBykP00LtOQU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=Y4GLHZpsroSEA6Ndq7r9Gp/zI2mLHk9qOmPYZQGZYIMrW0201LrefpXxdByasrqIGS +ZzrXCv8NwXqXOcn+w75n1li50KHWFSh3GfRmaIVTr1x+jQjgqHss9f7MJZ32rNZ7sFg ZAIXkiH9hcdMGvDCmMrb9n9q1uY2uA4spgda0= MIME-Version: 1.0 Received: by 10.223.116.72 with SMTP id l8mr1540559faq.33.1240226707084; Mon, 20 Apr 2009 04:25:07 -0700 (PDT) In-Reply-To: References: Date: Mon, 20 Apr 2009 14:25:06 +0300 Message-ID: <991123400904200425k36262380q3723feb991b88c52@mail.gmail.com> From: =?UTF-8?B?T2RoaWFtYm8g44Ov44K344Oz44OI44Oz5bee?= To: Zbigniew Szalbot Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: User Questions Subject: Re: how to copy files without directories X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Apr 2009 11:25:09 -0000 On Mon, Apr 20, 2009 at 2:12 PM, Zbigniew Szalbot wrote: > Dear all, > > I have read the cp manual and I cannot find an option how to copy > directories without files they contain. Is this possible? > Thank you very much! I don't get your requirement. You'd like to copy empty directories from where to where? Is it a directory tree or just leaves (TM, patented by me)? (Leaves are at the same level,, below the branches, while trees contain branches. Wildly imagining..from a tree... or branches.. for d in `find /source/path/ -type d`; do mkdir -p /some/path/$d; done (Untested). -- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254733744121/+254722743223 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ "Clothes make the man. Naked people have little or no influence on society." -- Mark Twain