title: How to copy some line of a text file by having a list of names
body: <p>I have a text file including 2,000,000 lines (<code>text1</code>) and I want to extract some of the lines just by having some part of the lines(<code>text2</code>).
  Example:</p>
  
  <p><code>Text1</code></p>
  
  <pre><code>seq1 TNS 23 45 67 81 92
  seq2 trq 54 67 80 73 12
  seq3 ewr 59 61 51 51 71
  seq4 qto 54 94 93 92 02
  </code></pre>
  
  <p><code>Text2</code></p>
  
  <pre><code>seq2
  seq3
  seq4
  </code></pre>
  
  <p>I need to extract all Text2 inputs from Text1.</p>
  
  <p>any answer will be appreciated,
  Thanks</p>