0

how to delete some words from multiple line in file?

I have a file with below content. tell me how to delete some portion in lines trap-target "test1" address 1.1.1.1 "delete1" trap-target "test2" address 2.2.2.2 "delete2 I want to remove from address to "delete 1" and similarry from line 2 address to "delete 2"

12th Oct 2016, 4:32 AM
Anurag Sharma
Anurag Sharma - avatar
1 ответ
+ 1
Find the position of address keyword in your string then take string from 0th position to address position
12th Oct 2016, 6:57 PM
Pramod Lagare
Pramod Lagare - avatar