Hi all,
I have a local containing a series of variable names with suffixes:
local myvars = "foo1_stub1 foo2_stub2 bar1_stub1 bar2_stub2"
I would like to trim the suffixes (using something analogous to the subinstr function for string vars), to produce:
ds $myvars
"foo1_ foo2_ bar1_ bar2_"
I have a large number of variable names, but a small set of suffixes.
Thanks,
Mike
I have a local containing a series of variable names with suffixes:
local myvars = "foo1_stub1 foo2_stub2 bar1_stub1 bar2_stub2"
I would like to trim the suffixes (using something analogous to the subinstr function for string vars), to produce:
ds $myvars
"foo1_ foo2_ bar1_ bar2_"
I have a large number of variable names, but a small set of suffixes.
Thanks,
Mike
Comment