How do I import the results of a subshell command into an array in bash 3?
I have been using mapfile to accomplish this in bash 4 as follows:
mapfile -t myarray < <(someScript.sh)
However, some of the servers I am working with only have bash 3 installed, and cannot be upgraded to bash 4.
What is an equivalent command in bash 4?
I need to be able to iterate the lines in the array, and perform operations on the contents of each line.