小编Dar*_*awg的帖子

find -exec 在鱼中不起作用

在使用 fish 作为我的 shell 时,我尝试使用以下命令设置对当前目录中的一堆 c 源文件的权限

find . -type f -name "*.c" -exec chmod 644 {} +;
Run Code Online (Sandbox Code Playgroud)

我收到一个错误

查找:缺少`-exec'的参数

或者

find . -type f -name "*.c" -exec chmod 644 {} \;
Run Code Online (Sandbox Code Playgroud)

我收到一个错误

chmod: 无法访问 '': 没有那个文件或目录

怎么了?

find fish

7
推荐指数
1
解决办法
1904
查看次数

标签 统计

find ×1

fish ×1