我正在尝试将符号链接转换为硬链接。我的剧本中有一行:
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 - ;
我无法弄清楚出了什么问题。请帮忙!