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).

Get Julia 1.0 Programming now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.