Open zot opened 2 years ago
This provides a @g_str macro that creates a Cmd object based on the interpolated contents. This allows absolute paths and uses pwd for the directory if the glob not absolute.
@g_str
pwd
If these files exist: /tmp/a1, /tmp/a2, and /tmp/a3, then:
/tmp/a1
/tmp/a2
/tmp/a3
julia> import Glob.@g_str julia> x="a" "a" julia> g"/tmp/$x*" `/tmp/a1 /tmp/a2 /tmp/a3`
This provides a
@g_str
macro that creates a Cmd object based on the interpolated contents. This allows absolute paths and usespwd
for the directory if the glob not absolute.If these files exist:
/tmp/a1
,/tmp/a2
, and/tmp/a3
, then: