title: How to only grep and sorted value from other column
body: <p>I have an input file1.txt like below:</p>
  
  <p>file1.txt :</p>
  
  <pre><code>test 1 Vertical                                564N,
  test 2 Vertical                                551N,
  test 3 Hydrophone                              127N, 223D, 344D,
  test 4 Hydrophone                              350D,
  test 6 Hydrophone                              407D,
  </code></pre>
  
  <p>How can I grab only 4th column matched value and then sorted into following?</p>
  
  <pre><code>Output :
  N   D 
  564 223 
  551 344
  127 350
      407
  </code></pre>