|
| From: | Jim Meyering |
| Subject: | Re: cp with subdirectories following some pattern removed? |
| Date: | Wed, 11 Jul 2012 20:44:14 +0200 |
Peng Yu wrote:
> I need to cp a directories with all the the subdirectories matching a
> pattern removed (ignore all the test* subdirectories). There can be
> many solutions to this problem. I'm wondering if anybody is aware of
> an easy and robust solution. Thanks!
I would use rsync for that:
rsync -avP --exclude='test*' A B
| [Prev in Thread] | Current Thread | [Next in Thread] |