How do I return an array in a bash script?
How do I return an array in a bash script? This approach involves the following three steps: Convert the array with ‘declare -p’ and save the output in a variable. Use the echo builtin to pass the variable to a function or to pass it back from there. Finally, recreate the array where it is […]