Re: How to avoid copying empty directories?

2001-11-28 Thread Dave Dykstra
On Tue, Nov 27, 2001 at 04:03:58PM -0800, [EMAIL PROTECTED] wrote: rsync -avu --include 'tmp1/*/*.c' --include */ --exclude * tmp1 tmp2 The above command copies all the empty directories under tmp1/ . Is there any way to avoid it? Currently the only way is to explicitly include the parent

Re: How to avoid copying empty directories?

2001-11-28 Thread Martin Pool
On 28 Nov 2001, Dave Dykstra [EMAIL PROTECTED] wrote: On Tue, Nov 27, 2001 at 04:03:58PM -0800, [EMAIL PROTECTED] wrote: rsync -avu --include 'tmp1/*/*.c' --include */ --exclude * tmp1 tmp2 The above command copies all the empty directories under tmp1/ . Is there any way to avoid it?

Re: How to avoid copying empty directories?

2001-11-28 Thread Dave Madole
I agree with this - a perl script to generate a list of includes from a list of directories is not hard to write (below in long and readable rather than compact perly form), and what about --python and --awk: #cat frag.pl #!/usr/bin/perl -w # frag.pl - perl fragment for generating include list

How to avoid copying empty directories?

2001-11-27 Thread btang
rsync -avu --include 'tmp1/*/*.c' --include */ --exclude * tmp1 tmp2 The above command copies all the empty directories under tmp1/ . Is there any way to avoid it?