Using a variable name to create an array bash, unix
问题 First I should perhaps explain what I want to do... I have 'n' amounts of files with 'n' amount of lines. All I know is that the line count will be even. The user selects the files that they want. This is saved into an array called ${selected_sets[@]} . The program will print to screen a randomly selected 'odd numbered' line from a randomly selected file. Once the line has been printed, I don't want it printed again... Most of it is fine, but I am having trouble creating arrays based on the