How to print the next line after a matching regexp with sed

~ $ cat example.txt
first line
second line
third line
another line

~ $ sed -n ‘/second/{n;p;}’ < example.txt
third line

~ $ sed -n ‘/second/{n;p;n;p;}’ < example.txt
third line
another line

Tags: ,