title: Find duplicate values in one of the two columns in a text file
body: <p>I have a text file with two values in each line separated by a space. Now I want to know duplicate values in one of the columns. Is it possible to achieve this using Windows powershell.</p>
  
  <p>Given a text file:</p>
  
  <pre><code>Apple Fruit
  Banana Fruit
  Carrot Vegetable
  </code></pre>
  
  <p>Desired output is: (I want to find duplicates in second column)</p>
  
  <pre><code>Fruit
  </code></pre>