title: grep several strings from gz file
body: <p>What is the best way to extract lines from a very large gz file that match multiple strings in a second file?</p>
  
  <p>I've tried, which works for that string and surrounding: </p>
  
  <pre><code>gunzip -c /myfolder/large_file.gz | grep -B 50 "33754548"  &gt; /myfolder/specific_linesfrom_large_files.txt
  </code></pre>
  
  <p>However, sometimes the strings needed are not in 50 lines near, so I attempted:</p>
  
  <pre><code>gunzip -c /myfolder/large_file.gz | grep  -F  /myfolder/multiple_strings.txt  &gt; /myfolder/specific_linesfrom_large_files.txt
  </code></pre>
  
  <p>Which didn't work, any suggestions?</p>
  
  <p>for example, the <strong>multiple_strings.txt</strong> file might contain: </p>
  
  <pre><code>16804029
  42061608
  42069963
  42072123
  177479064
  177420374
  </code></pre>