What are the "Context Line Control" settings of the Powershell cmd: findstr or what is an alternative Powershell cmd which will let me find a string in some output and also give me the convenience to print surrounding lines?
On GNU/Linux I would do: grep -A 5 -B 5 somestring file.txt
The command below searches for the string "four" but asks grep to show 1 line above the found line and 2 lines below the found line which has the string present.
$ grep -A 2 -B 1 four tmp.text
three
four
five
six
$ cat tmp.text
one
two
three
four
five
six
seven
Thanks