I have the following string
Local intf Local circuit Dest address VC ID Status
------------- -------------------------- --------------- ---------- ----------
Gi36/1 Eth VLAN 3018 181.181.181.181 3018 UP
10.65.220.180#
--- 19:58:22 ---
482: linuxserver: 2014-07-07T19:58:22: %framework-5-NOTICE: %[pname=TRP-__taskid1]: id: testcase_info_id37
483: linuxserver: 2014-07-07T19:58:22: %framework-5-NOTICE: %[pname=TRP-__taskid1]: starttime: 2014-07-07 19:58:22
484: linuxserver: 2014-07-07T19:58:22: %framework-5-NOTICE: %[pname=TRP-__taskid1]: name: testcase_info_id37
485: linuxserver: 2014-07-07T19:58:22: %framework-5-NOTICE: %[pname=TRP-__taskid1]: Starting execution of subtest testcase_info_id37
+++ 19:58:22 +++
Local intf Local circuit Dest address VC ID Status
------------- -------------------------- --------------- ---------- ----------
Gi36/1 Eth VLAN 3018 181.181.181.181 3018 UP
I want to replace all the line which contains characters like "linuxserver" in it.
I have tried in vi like below.
:%s/.*linuxserver.*//g
But, after replacement, I am getting output as
Local intf Local circuit Dest address VC ID Status
------------- -------------------------- --------------- ---------- ----------
Gi36/1 Eth VLAN 3018 181.181.181.181 3018 UP
10.65.220.180#
--- 19:58:22 ---
//A new line here
//A new line here
//A new line here
//A new line here
+++ 19:58:22 +++
Local intf Local circuit Dest address VC ID Status
------------- -------------------------- --------------- ---------- ----------
Gi36/1 Eth VLAN 3018 181.181.181.181 3018 UP
I want it to be like as follows,
Local intf Local circuit Dest address VC ID Status
------------- -------------------------- --------------- ---------- ----------
Gi36/1 Eth VLAN 3018 181.181.181.181 3018 UP
10.65.220.180#
--- 19:58:22 ---
+++ 19:58:22 +++
Local intf Local circuit Dest address VC ID Status
------------- -------------------------- --------------- ---------- ----------
Gi36/1 Eth VLAN 3018 181.181.181.181 3018 UP
How i can achieve this ? Thanks in advance.