You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
9 lines
216 B
PowerShell
9 lines
216 B
PowerShell
1 year ago
|
(Get-Content input -Raw).Split("`n`n")
|
||
|
| ForEach-Object {
|
||
|
($_.Split("`n") | Measure-Object -Sum).Sum
|
||
|
}
|
||
|
| Sort-Object -Descending
|
||
|
| Select-Object -First 3
|
||
|
| Measure-Object -Sum
|
||
|
| Select-Object -ExpandProperty Sum
|