Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $debugRegex = 'Debug'
- $releaseRegex = 'Release'
- $path = 'g:\Projects\'
- $f = "*.*proj"
- foreach ( $file in gci -Path $path -Filter $f -Recurse) {
- $file.FullName
- foreach($line in [System.IO.File]::ReadLines($file.FullName) | Where-Object {$_ -match $debugRegex})
- {
- if( $line -match $releaseRegex) {
- $line
- }
- }
- }
Add Comment
Please, Sign In to add comment