我一直在寻找一种使用Powershell执行基本grep的方法。2020-02-04 05:42:12,132 INFO UselessLog 8=FIX4.4|35=D|49=sender1|56=recipient|....2020-02-04 05:42:12,136 INFO UselessLog2 8=FIX5.0|35=AB|49=sender3
4000 lines
(Get-Content $LogFile | Select-Object -Skip 4000) | Set-Contentf o u n d , e x i t i n g 还尝试创建“临时”日志文件,但结果相同 Get-Content $LogFile | Select-Object -Skip 100 | Set-Content