I'm attempting to write a Powershell script that cycles through a text file filled with pairs of lines. There isn't any whitespace between these pairs of lines. As I cycle through, I'm checking the 2nd line in each of these pairs for a certain
string, and if it's a match, I want to delete that pair of lines. This seems pretty simple, but I'm having difficulty getting the logic correct to do this. What's the best way to do this?
Microsoft is conducting an online survey to understand your opinion of the Technet Web site. If you choose to participate, the online survey will be presented to you when you leave the Technet Web site.