From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10868 invoked by alias); 23 Feb 2014 07:16:37 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 18505 Received: (qmail 18837 invoked from network); 23 Feb 2014 07:16:31 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW, T_TO_NO_BRKTS_FREEMAIL autolearn=ham version=3.3.2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to :disposition-notification-to:user-agent; bh=dvp+Dm0qc7aXicdANsyol61x1aTp7aCFeseiQ/Jd8r0=; b=GuKS2y4zfQPKJF+CDsSmkMKeQJBmE+nCZ+9wjmsDqIiAHJjuj1+q/lJMlDhyRFGxY2 7oJ+QdIvgUUPIY13uOhXc2hKbxszIw9sbfBTUq2TQ2fGa+HH+xpPby3k33mB0ZIOOocu 6CYEndlUE/pe/2cOO5pLw2Q/BkVqbgea3nPkmdESeV2uvkYSWrBT1P17ec0XcwnmhmgR t86qMJYSk+N/z8Xr3mseyymMGNSD1Zl1TXeIar1WKocHPHxUEyyZHIHYdqYMZv7jUH9F A5E/G7lV9Zz+uJbNn6W1Dck/Gt2YA/SRiu9cAQ2JDTrx8pnX0mt9heEdzda/bbcTV3Yq 2ODQ== X-Received: by 10.68.98.3 with SMTP id ee3mr18270716pbb.31.1393139785959; Sat, 22 Feb 2014 23:16:25 -0800 (PST) Date: Sun, 23 Feb 2014 15:15:43 +0800 From: lilydjwg To: zsh-users@zsh.org Subject: Re: Copying certain subdirectories retaining structure Message-ID: <20140223071542.GA25203@lilyforest> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.22 (2013-10-16) On Sat, Feb 22, 2014 at 08:06:32PM +0000, zzapper wrote: > I want to copy all files in subdirectories named /good/ to a USB while > retaining directory structure > > /aaa/pic/good > /aan/dogs/good/ > /dir1/dir2/dir3/good/ I always find tar is great for copying lots of files: tar c **/good(/) | tar xv -C /media/usbkey -- Best regards, lilydjwg