title: Using for loops to traverse through an array in shell script
body: <p>following is my test code to traverse though elements placed in an array. However I am getting the specified error. Please help me understand what the error is, and why I am getting it, so that I can rectify my mistake.</p>
  
  <p>Code:</p>
  
  <pre><code>#!/bin/bash
  categories=("men" "women" "kids")
  
  for i in "${categories[@]}"
     do:
         echo $i;
  
     done
  </code></pre>