【问题】
执行:find ./ -name ".gitignore" -exec rm -rf {}\;
find 指令出现:missing argument to `-exec'
【解决】
find 指令需要在{}的前后都加上空格才可以,如下为正确指令:
find ./ -name ".gitignore" -exec rm -rf {} \;
版权所有丨如未注明,均为原创,转载请注明转自:https://whonee.net/find-missing-argument-to-exec.html