title: How to search a string in multiple files and return the names of files in Powershell?
body: <p>I have started learning powershell a couple of days ago, and I couldn't find anything on google that does what I need so please bear with my question.</p>
  
  <p>I have been asked to replace some text strings into multiple files. I do not necessarily know the extension of the possible target files and I don't know their location either. So far I have managed to recursively browse into the directory (<code>get-ChildItem -recurse</code>) and find the string I was looking for with get-content and select-string:</p>
  
  <pre><code>Get-ChildItem -recurse | Get-Content | Select-String -pattern "dummy"
  </code></pre>
  
  <p>The problem is, I can see the occurences of the text I am looking for, but I don't know how to tell PS to return the path and the name for every matching files as well. </p>
  
  <p>How can I get the name and location of the files that contains the expression I am looking for?</p>