With the grep command, I found the text I need as follows:
grep 'C02' ~/temp/log.txt
Now, wherever I find the desired string, I would like to print the line following the found string.
For example, let's say that the desired text is abc, and abc is found on line 12, I would like to print line 13 too.
grep -A1 'abc' ~/temp/log.txtfor 1 line of context After the match - see theContext Line Controlsubsection of the manual (man grep)grep -F 'C02'instead as it is faster.grep -Fmatches fixed strings. such as 'C02'