hi Guys,
this is my requirement, there is a huge xml file of this i have to change 3 lines with out opening the file
/users/oracle > cat lnxdb-pts-454.xml|egrep "s_virtual|s_cluster|s_dlsnstatus"
<cluster_port oa_var="s_clusterServicePort">9998</cluster_port>
<host oa_var="s_virtual_hostname">lnxdb-pts-454</host>
<private_address oa_var="s_clusterInterConnects">lnxdb-pts-454-rac</private_address>
<oa_process_status oa_var="s_dlsnstatus">enabled</oa_process_status>
/users/oracle >
#### Required Output
/users/oracle > cat lnxdb-pts-454.xml|egrep "s_virtual|s_cluster|s_dlsnstatus"
<cluster_port oa_var="s_clusterServicePort">9999</cluster_port>
<host oa_var="s_virtual_hostname">lnxdb-pts-454-vip</host>
<private_address oa_var="s_clusterInterConnects">lnxdb-pts-454</private_address>
<oa_process_status oa_var="s_dlsnstatus">disabled</oa_process_status>
/users/oracle >
I tried with using Sed, started with one parameter "s_vitrual_hostname" ...but iam not able to make the changes without opening the file..
I just have to run one shell script & it should take care of the file, ofcourse the script would include the above parameters
can anyone help me with this..i have to do similar modifications on 20 hosts like this, thought a small shell script would fix it
thanks in Advance
sai