3

Question on variable naming and assignment...

view full story
linux-howto

http://www.linuxquestions.org – can i use the value of one variable to generate a name for another variable? for example i want to use the counter from a "do while" loop to name and define a variable each time the loop executes. for example objectnames1=`ls -a` objectnames2=`ls -a` etc. i don't have a script yet but each time through the loop i intend to cd to a particular directory and then define a variable containing a list of each object in that directory as values. for the rest of the script to work, each variable generated has to be unique, and i can't think (HowTos)