On Wed, Nov 20, 2019 at 07:55:33PM +0300, Reco wrote: > On Wed, Nov 20, 2019 at 05:03:36PM +0100, to...@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.