Hi, I am using Select-String to find the line in a file that matches a string. I know the file will always be in the first few lines, so I only want to get the first match then stop the search, because the file is huge. I have retrieved the line, but what is the best way to delete the line from the file?
See attachment for input file and code.