I have my input sometyhing like this
aaa
bbbbbb cccccc
ddddd eeeee
1234 ravi kumar
aaaaaa vvvvvvv
5678 ravi kumar
rrrrrrr mmmmmmm
I want the output as follows.
aaa
bbbbbb cccccc
ddddd eeeee
1234 ravi kumar
aaaaaa vvvvvvv
5678 ravi kumar
Please help.
i am using the below command for deleting the rows before the first occurrence of the key word
sed -n '/ravi/,/*/p' test.log
can some one please edit this command for the above mentioned usage?