Created
January 28, 2014 01:11
-
-
Save kbaesler/8660670 to your computer and use it in GitHub Desktop.
Recursively searches all text files in the current directory tree for a string with case sensitivity.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
Recursively searches all text files in the current directory tree for a string with case sensitivity. | |
Get-ChildItem -recurse -include *.txt | Select-String -CaseSensitive "SomeString" | |
pgrep SomeStringToSearch *.txt | |
#> | |
function pgrep { param([string]$search, [string]$inc) Get-ChildItem -recurse -include $inc | Select-String -CaseSensitive $search } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment