$ grep -A1 text -AX tells grep to display 'X' amount of lines after line of match. Use -BX to do the same but before.