Get a subset of lines from a big text file using PowerShell v2

后端 未结 5 809
终归单人心
终归单人心 2020-12-30 11:57

I\'m working with a big text file, I mean more than 100 MB big, and I need to loop through a specific number of lines, a kind of subset so I\'m trying with this,

<
5条回答
  •  太阳男子
    2020-12-30 12:58

    The Get-Content cmdlet has a readcount and totalcount parameters. I would play around with those and try to set it up so that the lines your interested in get assigned to an object, then use that object for your loops.

提交回复
热议问题