[Solved] Print every 3 strings who are start from special symbols


Use this:

grep -A 1 -B 1 'Server sent' file.txt | sed '/^--$/d'

(OR)

grep -C 1 'Server sent' file.txt | sed '/^--$/d'

0

solved Print every 3 strings who are start from special symbols