Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Copying certain subdirectories retaining structure



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