I am wondering if it's possible to create a powershell script to do the following:
Find a value of lets say 123 in a text file
The value of 123 is in Line 2 of the text file but not Line 1 or 3.
I want it to delete line 1 and 3 but save line 2.
This would need to be done for thousands of lines.
Is this possible? Powershell or DOS, VB?
thanks in advance