[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] chmod -R ?
rs at ale.spam.futz.org wrote:
>> 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....
Until later, Geoffrey
"I predict future happiness for America if they can prevent
the government from wasting the labors of the people under
the pretense of taking care of them."
- Thomas Jefferson