title: Merging two files with columns in bash
body: <p>I have a file1.txt and the output is:</p>
  
  <pre><code>test4  30
  test6  29
  test3  17
  test2  12
  test5  5
  </code></pre>
  
  <p>This is file is ordered by <code>second column</code>. I sorted it with <code>sort -nr -k 2</code> .</p>
  
  <p>I have also file2.txt with the content of:</p>
  
  <pre><code>test2   A
  test3   B
  test4   C
  test5   D
  test6   E
  </code></pre>
  
  <p>What I want as result(result.txt) is:</p>
  
  <pre><code>test4   C  30
  test6   E  29
  test3   B  17
  test2   A  12
  test5   D  5
  </code></pre>