"Kiron" <Kiron@xxxxxx> wrote in message
news:7BD0B808-AC8D-4CBD-9AEC-DBC610558C50@xxxxxx
Quote:
> 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
>
Yeah I would just continue to use findstr until v2 comes out with these new
features on Select-String (including -allmatches and -notmatch - think
grep -v).
--
Keith