title: Compare two files and print all values horizontally if ids are matching?
body: <p>Hi I have two files as follows:
  File1.txt</p>
  
  <pre><code>10   A   B  C
  10   A   D  K
  11   X   Y  Z
  10   A   K  B 
  11   Y   X  A 
  </code></pre>
  
  <p>File2.txt</p>
  
  <pre><code>10
  11
  12
  </code></pre>
  
  <p>The expected output is</p>
  
  <pre><code>10 A  B  C  A  D  K  A  K  B
  11 X  Y  Z  Y  X  A 
  </code></pre>
  
  <p>I tried the command <code>grep -f File1.txt file2.txt</code></p>
  
  <p>But it did not give me all value coming under same id</p>