I'm trying to find the sed command to remove the end of the line (meaning, get the next line to the current), but only if line starts with the string NOTOK.
example input:
NOTOK something detected
details are : some info
output should be:
NOTOK something detected details are : some info
Best Answer
With awk: