我在shell脚本中执行find命令时遇到问题。我在这里做错了吗?有没有更好的方法来实现它?
**test.sh**
cmd="find /etc/nginx -user root ! -perm -u+r+w -printf \"%u %g %p\""
rowN=$($cmd)
echo $rowN
sh test.sh
find: paths must precede expression: %g
Usage: find [-H] [-L] [-P] [-Olevel] [-D help|tree|search|stat|rates|opt|exec] [path...] [expression]