[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] chmod -R ?
On 6/10/2010 10:56 PM, rs at ale.spam.futz.org wrote:
>> find . -name '*.txt' -exec chmod a-x {} \; -print
>
> 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..
Oooh, shiny! I've never gotten too familiar with xargs; my
loss, apparently.
-- JK
--
Forget Jesus: stars died so that you could be here today.
- physicist Lawrence Krauss