|
Re: Searching large text files Thanks for the tip. The [IO.File] Method does get the contents faster but I
suppose the memory overflow issue remains because it would go through the
pipeline as a big chunk.
Get-Content's -ReadCount could be set to a higher value than 1 to get larger
chunks of data -therefore faster- without overflowing the memory,
unfortunately, the comparison operators (-like, -notlike, -match, -notmatch)
don't work efficently then, many lines are skipped, missed or ignored.
--
Kiron |