I'm trying to make a loop in Bash. I tested the loop with for adr in a{a,b,c}d
and it works perfectly with aad, abd, acd
But if I have a variable with the value a{a,b,c}d
, it doesn't return the above values; instead it runs only once with the value a{a,b,c}d
.
How do I enable this?
Alternatively, I'm trying to take an input from the user, and then replace all instances of ~const~
with {b,c,d,f,g...y,z}
and then run the loop I described above.
Unfortunately, as I said, it isn't working. Is there any oher way to make this work?