[ale] chmod -R ?
rs at ale.spam.futz.org
rs at ale.spam.futz.org
Fri Jun 11 11:33:50 EDT 2010
>rs at ale.spam.futz.org wrote:
>> xargs is your friend:
>>
>> find . -name '*.txt' -print0 | xargs -0 chmod a-x
>>
>> This will save you from exec'ing chmod for every single txt file..
>
>I'm pretty sure 'chmod -R' used properly would be faster, and is smart
>enough to not run against single files.
Sure.. if the directory structure *only* contains .txt files. But chmod -R
would also take away directory x permissions, which might not be desirable....
--
Arguing with an Engineer is like wrestling a pig in mud.
After a while you realize the pig is enjoying it.
More information about the Ale
mailing list