Here you go: myarray[0]="this is a test" myarray[1]="this is another test" for i in "${myarray[@]}"; do echo "Value: $i" done Don’t forget the quotes around the ${myarray[0]}, or the spaces will separate each word on its own item. I work… Read More
Tips and Tricks for DevOps Engineers
Here you go: myarray[0]="this is a test" myarray[1]="this is another test" for i in "${myarray[@]}"; do echo "Value: $i" done Don’t forget the quotes around the ${myarray[0]}, or the spaces will separate each word on its own item. I work… Read More