Pádraig Brady <[email protected]> writes:
> Tobia Conforto wrote:
>> The same is true when someone
>> extracts some files from an archive or copies them over a removable
>> media, where permissions need to be reset to something sane, like 755/644:
>>
>
> current: chmod -R 755 another/path; find another/path -type f -exec chmod
> 644 {} +
current: find another/path -type f -exec chmod 644 {} + -o type d -exec chmod
755 {} +
> proposed: chmod -R d:755,f:644 another/path
>
> This case is more valid as it would be faster since you'd be traversing
> the branch only once.
Also only one traverse with find (which is more flexible here as well).
Andreas.
--
Andreas Schwab, [email protected]
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."