title: shell script to find multiple strings in multiple files and then them like "string - filename"
body: <p>I want to write a shell script which takes input from a file and search for that string in multiple file in a directory. I have successfully written a script which shows filename contains matched string. but I want to print the input string name also.</p>
  
  <p>input.txt - </p>
  
  <pre><code>name1
  name2
  name3
  name4
  </code></pre>
  
  <p>dir - <code>/a/b/</code></p>
  
  <p>output - </p>
  
  <pre><code>name1 : file1, file2
  name2 : file1
  name3 : no results found
  name4 : file4
  </code></pre>