title: How to use a bash command in awk
body: <p>Here is my problem</p>
  
  <p>I have a File 1 where I have some data</p>
  
  <pre><code>Var1.1   Var1.2   Var1.3
  Var2.1   Var2.2   Var2.3
  Var3.1   Var3.2   Var3.3
  </code></pre>
  
  <p>And I have a File 2 that I would like edit thanks to the above data</p>
  
  <p>File2 (1)</p>
  
  <pre><code>***pattern with Var2.1***
  some text...
  </code></pre>
  
  <p>File2(2)</p>
  
  <pre><code>***pattern with Var2.1***
  Here I want to add Var2.2 and Var2.3
  some text
  </code></pre>
  
  <p>My first solution is to use AWK, but I don't know to include a bash command in. The AWK should make something like:</p>
  
  <ul>
  <li>Search the pattern in the File2</li>
  <li>When awk get it, awk calls a script which returns the wanted values from the File1. </li>
  <li>Then awk can edit the File2</li>
  </ul>
  
  <p>don't hesitate to explain me other possibilities if there are which are more simple !</p>
  
  <p>Thank you !</p>