Interpolation

String interpolation with the $ operator is allowed in a command object, like this:

  file = "file1.txt" 
cmd = `cat $file` # equivalent to `cat file1.txt` 
run(cmd) #> prints the contents of file1.txt 

This is very similar to the string interpolation with $ in strings (refer to the Strings section in Chapter 2, Variables, Types, and Operations).

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.137.183.210