0
sumfile = simplifyFilename("getWorkingDir/perc.sum")
sumpath = strcat("grep -r "RUN COMPLETED" " sumfile " > out.txt")
print(sumpath)
system(sumpath)

我收到错误,因为 Error lineread/read: 在输入中遇到语法错误

4

1 回答 1

1

您应该转义引号。见下文

strcat("grep -r \"RUN COMPLETED\" " sumfile " > out.txt")
于 2021-07-01T09:55:37.307 回答