[ale] chmod -R ?

JK jknapka at kneuro.net
Fri Jun 11 07:09:31 EDT 2010


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


More information about the Ale mailing list