Jun 7, 2017

[HDGEM] How To Iterate Through Array Values in Bash

To Iterate Through Array Values

Use for loop syntax as follows:
for i in "${arrayName[@]}"  do     :      # do whatever on $i  done
$i will hold each item in an array.



--
Posted By Blogger to HDGEM at 6/07/2017 07:19:00 AM