title: Bash read csv file using awk and save output in array
body: <p>I have an excel file and column 10 has multiple values like below,</p>
  <pre><code>Designation Header
  -----------------
  Student
  Teacher
  Teacher
  Organization Director
  Organization Director
  Organization Head
  Student
  Organization Head
  Organization Director
  Teacher
  </code></pre>
  <p>I am trying to get the unique values from this column and the number of rows corresponding to each unique value in an associative array.</p>
  <p>Here is the command I am using to get the unique value and number of rows,</p>
  <pre><code>awk -F',' 'NR&gt;1{print $10}' Sorted_File.csv | sort | uniq -c
  </code></pre>
  <p>This gives me output as below,</p>
  <pre><code> 2 Student
   3 Teacher
   3 Organization Director
   2 Organization Head
  </code></pre>
  <p>How do I save this output in an associative array i.e key-value pair?</p>