<# | |
.Example | |
.\HadoopVSPowershell.ps1 | |
.Author | |
@KevinMarquette | |
.Notes | |
You may need to [GC]::Collect() after this because it uses a lot of RAM | |
#> | |
[cmdletbinding()] | |
param([string]$Path = (Get-Location)) | |
process | |
{ | |
$count = @{} | |
ls $Path -include *.pgn -recurse | Get-Content | ?{$_ -match 'Result '} | %{$count[$_]+=1} | |
Write-Output $count | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment