title: Select unique or distinct values from a list in UNIX shell script
body: <p>I have a ksh script that returns a long list of values, newline separated, and I want to see only the unique/distinct values. It is possible to do this?</p>
  
  <p>For example, say my output is file suffixes in a directory:</p>
  
  <blockquote>
  <pre><code>tar
  gz
  java
  gz
  java
  tar
  class
  class
  </code></pre>
  </blockquote>
  
  <p>I want to see a list like:</p>
  
  <blockquote>
  <pre><code>tar
  gz
  java
  class
  </code></pre>
  </blockquote>