/ Published in: Windows PowerShell

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
Select-string $file -pattern 'TOTALS:' | select -first 3 |foreach {(get-content $file -totalcount ($_.linenumber +4))[-5,-3,-1]}
Comments
