找不到文件错误 - 尝试将符号链接转换为常规文件

时间:2015-12-08 00:39:07

标签: shell symlink

我正在尝试将符号链接转换为硬链接。我的剧本中有一行:

find -type l -exec -c 'ln -f "$(readlink -m "$0")" "$0"' {} \;

但是我收到以下错误:

FIND: Parameter format not correct
File not found - -TYPE
File not found - L
File not found - -EXEC
File not found - -C
File not found - LN -F \$(READLINK
File not found - -M
Access denied - \
File not found - $0\)\
File not found -  \$0\
File not found - {}
File not found - ;

我无法弄清楚出了什么问题。请帮忙!

0 个答案:

没有答案