Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Copying certain subdirectories retaining structure
- X-seq: zsh-users 18505
- From: lilydjwg <lilydjwg@xxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: Copying certain subdirectories retaining structure
- Date: Sun, 23 Feb 2014 15:15:43 +0800
- Disposition-notification-to: missyou11@xxxxxxx
- 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==
- In-reply-to: <XnsA2DCCC96A9968davidrayninfocouk@80.91.229.13>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <XnsA2DCCC96A9968davidrayninfocouk@80.91.229.13>
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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author