Created
February 14, 2016 20:28
-
-
Save matt40k/68724a051f20aa8de25c to your computer and use it in GitHub Desktop.
Find all files that have Matt40k in them
This file contains hidden or 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
$projDir = "C:\Prjs\SIMSBulkImport\*" | |
$sbiFiles = Get-ChildItem -File $projDir -Recurse -Exclude *.dll, *.pdb, *.cache | |
Foreach($sbiFile in $sbiFiles) | |
{ | |
$sbiContents = Get-Content $sbiFile.FullName | Select-String "Matt40k" -quiet | |
if ($sbiContents) { | |
Write-Host $sbiFile.FullName | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment