title: Filling a shell script array with data
body: <p>I want to extract some data from a file and save it in an array, but i don't know how to do it. </p>
  
  <p>In the following I'm extracting some data from /etc/group and save it in another file, after that I print every single item:</p>
  
  <pre><code>awk -F: '/^'$GROUP'/ { gsub(/,/,"\n",$4) ; print $4 }' /etc/group &gt; $FILE
  
  for i in `awk '{ print $0 }' $FILE`
     do
       echo "member: "$i" "
     done 
  </code></pre>
  
  <p>However, I don't want to extract the data into a file, but into an array.   </p>