I want to assign the string contained in
$value
to multiple BASH variables.
Actually the example I gave before (var1=var2=...=$value
) was not reflecting exactly what I wanted.
So far, I found this but it only works if $value
is an integer:
$ let varT=varz=var3=$value
How can I do that?
Asked by SebMa
(2433 rep)
May 15, 2019, 07:06 AM
Last activity: Apr 28, 2022, 03:58 PM
Last activity: Apr 28, 2022, 03:58 PM