i am having a file test1.txt and its contents is as follows.
<abcaaa bbb ccc ddd>
<dddeeeffff>
<my computer>
<abcmydocuments>
Now I need to find the text abc and should be replaced as follows.
<abc>
<dddeeeffff>
<my computer>
<abc>
First line has the text "abc" and it has to be replaced with abc removing all others characters.
Second line does not have the pattern abc and so it will not be disburbed and so as the third line.
The fourth line has the text "abc" and should be replaced by abc alone ignoring all other characters.
can anyone help me out how to perform this in unix shell script.
Thanks in advance.
Krishnakanth Manivannan
Software Engineer