Replace a whole string which contains a spefiic word(s) in it
Hi All,
I am quite new in Linux same as with 'Sed' command. I have found most of my solutions on the forums here except this last one. Plz guide me!
I have following input lines in my source file;
07/02/2011/105139 10.0.117.41:58251 3456.52
07/02/2011/105152 P17StreamDistributorI15BlockingLFQueue9AbsThreadE0x2aaad3e4f460 3849.7
I want to replace every string which contains 'StreamDistributor' word in it, with "CTF-Stream--Distributor" so the desire output should be as follows;
07/02/2011/105139 10.0.117.41:58251 3456.52
07/02/2011/105152 CTF-Stream--Distributor 3849.7
I will prefer to use 'Sed' if its possilbe. Any idea????
Regards,
A.Malik
|