To recursively look for files containing a keyword in the code base, below Powershell script can be used.
set-location "CodeBaseFolder"
Get-ChildItem
-Recurse -File | Select-String -Pattern
"PatternToLook" | Select path, LineNumber, Line | Export-Csv
C:\OutputFolder\KeywordPresence_InCodeBase.csv -NoTypeInformation
No comments:
Post a Comment