Delete a set of lines after finding a text
Hi All,
I need to delete a set of lines below the search word.
For Ex, i have file similar to this:
cat
1
2
3
4
6
rat
a
b
y
r
e
cat
y
u
t
bat
u
t
e
w
in this case i need to search for cat and delete 3 lines immediately below that. The result must look like
4
6
rat
a
b
y
r
e
bat
u
t
e
w
|