Answers for "loop from array bash"

17

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
Posted by: Guest on April-13-2020

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language