
1 kokutou Dec 9, 2021 via Android 按行读取, 到了 summary 开始记录 到了空行停止。。。 不就行了。。。 |
2 skinny Dec 9, 2021 Get-Content -Path MyConmandOutput.txt | Select-Object -First 20 -Skip 4 | Select-String -Pattern '^(Error|Warning) ->\d+' 不过如果是我自己写,我不会为了一行而一行,我会用循环…… |
3 skinny Dec 9, 2021 Get-Content -Path MyConmandOutput.txt | Select-Object -First 20 -Skip 4 | Select-String -Pattern '^(Error|Warning) -?\d+' |
4 Dragonish3600 Dec 9, 2021 全部读取了然后用正则表达式匹配呗 |
5 CallMeReznov Dec 9, 2021 如果段落格式是固定的就按照换行符匹配呗 |