Hi!
I have an html file which has several instances of the same string
pattern "ABCDEF".
$a = Select-String -Path d:\work\test.html -pattern "ABCDEF"
and find the line number of the last instance of the pattern "ABCDEF"
by
$c = $a[$a.Length -1].ToString().Split(":")[2]
$c contains the line number.
How could I point to the next line number which is $c + 1 and retrieve
the string of the next line to a varible ?
Thanks in advance.
pjo
--
pjo
http://www.techtalkz.com - Technology and Computer Troubleshooting Forums