|
Re: Searching large text files Use Get-Content's -ReadCount parameter, set it to 1 to send a line at a time
through the pipeline but don't assign this to a variable before, instead
redirect the output to a file, e.g.:
gc c:\largeFile.txt -read 1 | ? {<filters>} > c:\filteredFile.txt
# don't assign the out to variable like this
$filterContent = gc c:\largeFile.txt -read 1 | ? {<filters>}
--
Kiron |