I have a very lengthy file(more than 4000 lines generated per day)in the following format.
yqiemmtcveihai
test-trans
10.227.30.66
<----------->
14.192.17.143
<----------->
peuddnbtmzdptw
Ttest-trans1
10.227.30.67
<----------->
14.192.17.142
<----------->
cqykfavuxpuqiq
Med
202.21.32.218
<----------->
hziuqbvuncwkie
Myubun
202.21.32.230
<----------->
I want to remove the <----------->
entry only between the IP's. So the result should be in this format.
yqiemmtcveihai
test-trans
10.227.30.66
14.192.17.143
<----------->
peuddnbtmzdptw
Ttest-trans1
10.227.30.67
14.192.17.142
<----------->
cqykfavuxpuqiq
Med
202.21.32.218
<----------->
hziuqbvuncwkie
Myubun
202.21.32.230
<----------->
Can anyone suggest to me a script, preferably in bash, to achieve this? I was breaking my head, but could not figure it out.