[Cialug] sync file permissions

Barry Von Ahsen barry at vonahsen.com
Fri Apr 30 12:20:18 CDT 2010


Zachary Kotlarek wrote:
> 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
> 

yes, this is what I was thinking when I found chmod --reference

thanks all

-barry




More information about the Cialug mailing list