title: Shell Script: Search multiple string in a text file and display the line that contains the string
body: <p>I am very new to the shell scripting world. I have done some research on this but seems not working so far.</p>
  
  <p>What I am trying to do is I have two txt files. I want to search all the strings from file A in File B, and display all the lines from file B that has the strings in it.</p>
  
  <p>So far, I only have this(please don't laugh)...</p>
  
  <pre><code>#!bin/sh
  for LINE in 'cat $1'
  do
  grep '$LINE' $2
  done
  </code></pre>
  
  <p>I guess I am trying to make it dynamic, so I can execute something like this</p>
  
  <pre><code>./script.ksh fileA.txt fileB.txt
  </code></pre>
  
  <p>Any suggestion would be appreciated and thanks so much!</p>