|
Re: Find and GREP Not in v1. In the CTP of v2 Select-String has a -Context parameter. You could include one line before and after of each match like so:
select-string <pattern> <logfile> -con 1
# ...or see one line before and three after
select-string <pattern> <logfile> -con 1, 3
# for more
man select-string -p context
--
Kiron |