[Cialug] sync file permissions

Zachary Kotlarek zach at kotlarek.com
Fri Apr 30 11:32:10 CDT 2010


On Apr 30, 2010, at 11:03 AM, Ed Meacham wrote:

> Hey everyone - just joined the mailing list. I'm actually who this was for.
> Barry was my fourth resource in trying to find a solution for this.
> 
> Champ--
> Thanks for the link, I'm going to give this a go; see if either method in
> that post works for what I'm doing.


This is probably easier, if you've got GNU coreutils:

	find /path1 -print0 | xargs -0 -I REP chmod --reference=REP /path2REP

If you want to see what it's going to do before you run it, add an echo:

	find /path1 -print0 | xargs -0 -I REP echo chmod --reference=REP /path2REP

Zach

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2746 bytes
Desc: not available
Url : http://cialug.org/pipermail/cialug/attachments/20100430/415e375d/attachment.bin 


More information about the Cialug mailing list