[Solved] Delete row + the following 2 rows if a certain row name using UNIX [closed]


One way:

awk '/Delete-me/ {getline;getline;getline;print;getline;print}'
3
4
3
4
3
4

Another way

awk 'NR%5==0 || NR%5==4'
3
4
3
4
3
4

0

solved Delete row + the following 2 rows if a certain row name using UNIX [closed]