Search Results

Search: Posts Made By: s1s2s3s4
3,033
Posted By s1s2s3s4
How to change values in xml file?
Hi Rudi,

I have used XMLSTARTLET package and used the bellow command, still no luck,




xml ed -u '/task-arguments/argument[@name="protocol"]/@default-value' -v 'string("tcp")'...
3,033
Posted By s1s2s3s4
How to change values in xml file?
Hi Rudi,

Yes, we can create xml file from scratch using data with my config file.

It's not possible to create the from scratch. I just need to update values in b/w the tags..

Please ask me...
3,033
Posted By s1s2s3s4
How to change values in xml file?
Hi Rudi,

I gave only example in earlier post, not full of my script. I ma trying understand the logic to implement, I Will declare the values in script,how to pars the values my script will take...
3,033
Posted By s1s2s3s4
How to change values in xml file?
Don,

The values means, Where ever it's highlighted in that place the values should update using my script file.

<task-arguments>
<argument name="hostname" is-required="true" default-value="My...
3,033
Posted By s1s2s3s4
How to change values in xml file?
Hi Don,,

I Have a script file like abc.sh when i run this script i want to update monitor.xml file like below..

The original file

<task-arguments>
<argument name="hostname"...
3,033
Posted By s1s2s3s4
How to change values in xml file?
Hi Don,
Please see my comment below..
What operating system and shell are you using?
RHEL

Do you just want to change <argument name> tag data if the tag appears between <task-arguments> and...
3,033
Posted By s1s2s3s4
How to change values in xml file?
I have xml file like below, i want change the values at default-value place of each argument name using shell script. like
where argument name= protocol and default-value=tcp,
where argument name...
Showing results 1 to 7 of 7

 
All times are GMT -4. The time now is 07:07 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy