If you print some text to the screen with command print or just by typing it in your code, that text is going to be printed in raw form. So, even if you use escape character like in case of \", that is exactly what is going to be printed. Way to avoid that is to use message function like
message("\"some text to be printed\"")
in this case, instead of having result like:
\"some text to be printed\"
we are going to have
"some text to be printed"
so, function message is parsing input string and prints refined version to the screen.
And second part of this tutorial is dealing with shell commands. In order to send some command to the OS shell, you should use function system in a form:
system("command to be executed")
If you want to see video tutorial check the link below.
No comments:
Post a Comment