方式一,使用 xargs 命令:find ./ -type f -name ".txt" |xargs chmod 777

方式二,使用exec命令:find ./ -type f -name ".txt" -exec chmod 777 {}