All Questions
Tagged with bash-array scripting
2 questions
2
votes
5
answers
4k
views
echoing value in same indexes of 2 arrays simulataneously
I have 2 arrays to prcoess in bash script simultaneously.
First array contains sort of lables.
Second array contains values, as under
LABELS=(label1 label2 label3 labe4 )
VALUES=(91 18 7 4)
What's ...
1
vote
1
answer
371
views
How to reference an array with a function prior to bash4.3
If we:
Define an array; and then..
Define a function; and want to..
Call that array from inside the function..
We can. Like so:
Input:
myArray=('1' '2' '3' '4' '5')
myFunction ()
{
local -n myList=...