Skip to content

Instantly share code, notes, and snippets.

@jeffesp
Created January 20, 2016 17:27
Show Gist options
  • Save jeffesp/fc9f06ca4d428f87c027 to your computer and use it in GitHub Desktop.
Save jeffesp/fc9f06ca4d428f87c027 to your computer and use it in GitHub Desktop.
function Find-StringInFiles
{
param ([string][PSDefaultValue(Help="*.*")]$files = "*.*", [string]$query )
Get-ChildItem -file -recurse $files | Select-String $query
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment