How to show only next line after the matched one? October 5, 2022 by Tarik you can try with awk: awk '/blah/{getline; print}' logfile