Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

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
 
PREVIOUS NEXT
Tagged: #loop #array #bash
ADD COMMENT
Topic
Name
9+3 =