I need to set a variable name from a string. Here is my code :
var="cle"
value="1"
printf -v $var "$value"
echo $cle
I want it to output "1"
I am getting:
illegal option "-v"
I tried to replace printf by the declare function but, dash doesn't include it either.