[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: recurse does not work?



On Wed, Nov 20, 2019 at 07:55:33PM +0300, Reco wrote:
> On Wed, Nov 20, 2019 at 05:03:36PM +0100, tomas@tuxteam.de wrote:
> > I'd recommend using the more flexible find, like so:
> > 
> >   find ping -type f -name "*.sh" -exec chmod -v +x {} +
> 
> find ping -type f -name '*.sh' -print0 | xargs -0 chmod +x

Both are safe for all files, regardless of special characters in their
names.  The -exec + version is modestly more efficient.


Reply to: