1

Assign variable name through loop

view story
linux-howto

http://www.unix.com – Hi As bash does not support multidimensional arrays (?), I need some help with a problem. What I want to do is to assign variable names containing a counter in a loop . what I want to do is basically something like this: Code: #!/bin/bash for i in {1..8}; do   var$i = "some command" done echo $var1 echo $var2 .... echo $var8 Can this be done? Regards, Tobbe (HowTos)