how to grep a string from file in skill file(.il)

679 views Asked by At
sumfile = simplifyFilename("getWorkingDir/perc.sum")
sumpath = strcat("grep -r "RUN COMPLETED" " sumfile " > out.txt")
print(sumpath)
system(sumpath)

am getting error as Error lineread/read: syntax error encountered in input

1

There are 1 answers

0
Alex On

You should escape quote marks. See below

strcat("grep -r \"RUN COMPLETED\" " sumfile " > out.txt")