2 ms·
FYI one of the things I like about Julia is that it also can execute shell commands via backquote syntax, in a very nice way (e.g. interpolating arrays just wor
by BlackFingolfin 3y ago
FYI one of the things I like about Julia is that it also can execute shell commands via backquote syntax, in a very nice way (e.g. interpolating arrays just works). E.g. try
files = split(read(`ls`, String))
firsttwo = files[1:2]
run(`ls -l $firsttwo`)
and this does the right thing even if you have a filename with spaces in it.
or this