title: Can I change the column that uniq -c automatically defaults to in bash?
body: <p>I've got a file with the following columns:</p>
  
  <pre><code>David Smith    Bronze
  Henry Jackson  Silver
  David Smith    Bronze
  Angela Wright  Gold
  Angela Wright  Gold
  David Smith    Gold
  David Smith    Bronze
  </code></pre>
  
  <p>I've tried writing this code:   </p>
  
  <pre><code>awk -F ',' '{if($6 == "name") print $6, $1}' filename.csv | sort | uniq -c
  </code></pre>
  
  <p>My output is:</p>
  
  <pre><code>4   David Smith   
  2   Angela Wright 
  1   Henry Jackson
  </code></pre>
  
  <p>Is there anyway to reverse the columns so that the names appear in the first column and the number of awards they've received appears in the 2nd column?</p>