/ Published in: Windows PowerShell
Expand |
Embed | Plain Text
Select-string $file -pattern 'TOTALS:' | select -first 3 |foreach {(get-content $file -totalcount ($_\3.linenumber +4))[-5,-3,-1]}
You need to login to post a comment.
Select-string $file -pattern 'TOTALS:' | select -first 3 |foreach {(get-content $file -totalcount ($_\3.linenumber +4))[-5,-3,-1]}
You need to login to post a comment.