Bash: Indirect Expansion Exploration
A common case that comes up when programming is accessing a variable that is received as a parameter. Bash scripting accomplishes this using something called indirect expansion, which will be our topic in this post. Setup Let’s make a shell script. In your favourite editor type #!/bin/bash x=2 letters=(a b c d) And save it…