Shell/Bash: loop from array bash Example

By

Shell/Bash Example: This is the "loop from array bash" Example. compiled from many sources on the internet by SimpleTutorials.org

loop from array bash

#!/bin/bash
# declare an array called array and define 3 values
array=( one two three )
for i in "${array[@]}"
do
	echo $i
done


* Summary: This "loop from array bash" Shell/Bash Example is compiled from the internet. If you have any questions, please leave a comment. Thank you!

Others