title: using Linux cut, sort and uniq
body: <p>I have a list with population, year, and county and I need to cut the list, and then find the number of uniq counties. </p>
  
  <p>The list starts off like this:</p>
  
  <pre><code>#Population,    Year,   County
  3900,   1969,   Beaver
  3798,   1970,   Beaver
  3830,   1971,   Beaver
  3864,   1972,   Beaver
  3993,   1973,   Beaver
  3976,   1974,   Beaver
  4064,   1975,   Beaver
  </code></pre>
  
  <p>There is much more to this list, and many more counties. I have to cut out the county column, sort it, and then output the number of uniq counties. I tried this command:</p>
  
  <pre><code> cut -c3- list.txt | sort -k3 | uniq -c
  </code></pre>
  
  <p>But this does not cut the third list, nor does it sort it alphabetically. What am I doing wrong?</p>