Hi all,
I need to replace string in XML file..XML file like
<dependency>
<groupId>fr.orange.portail.ear</groupId>
<artifactId>_AdminServicesEAR</artifactId>
<version>1.0.0-20080521.085352-1</version>
<type>ear</type>
</dependency>
<dependency>
... (2 Replies)
Hi All,
i have a file test.txt as shown below,
1,test,test111
2,rest,rest222
i want to replace the commas by tab delimiter..,
it should be like,
1 test test111
2 rest rest222
i tried the following code,
sed 's/,/\\t/g' test.txt >> ouptut.txt (9 Replies)
I'm trying to read an xml file and copy it line by line to another file and want to preserve the tabs.
What i'm trying to do is if I get to a certain line in the xml, I'm going to check to see if the next line is specifically what I want. If it's not, then I want to insert a single line of text... (4 Replies)
I have special requirement, my system provided the xml file as below(available xml file) and I need to convert it as below desired xml file.
is it possible thru shell scripts or awk?
What I need is :
my available xml contains number of records with tags <RevenueAmounts>, the last of record is... (6 Replies)
Hallo,
im basically a complete noob on shell scripting and im trying to replace or rather add 1 to a number between xml tags.
The xml basically has a tag somewhere that looks like this:
<tag>12345678901234</tag>
Now i want to replace the number between the tags. And i want the file to... (6 Replies)
Hello!
I'd like to modify custom values in a XML config file between comment tags using bash script.
<feature>
<keyboardshortcut>C-m</keyboardshortcut>
<option1>disabled</option2>
<option2>enabled</option2>
</feature>
<!-- bash script features START -->
<feature>
... (2 Replies)
Hi All,
My thanks in advance for you guys reading this and for any posts.
I'm having 100 XML files, I need script which replace a specific string.
It must be incrementing in 100 xml files..
Sample XML files:
<hwIPHostName type="attrib">DEMO1</hwIPHostName>
I need Demo1 to be... (4 Replies)
I am having XML file,i need to replace a range of string and replace with a file,Pls anyone help,
My Xml file looks like
</Order><PersonInfoShipTo AddressID="446311709" AddressLine1="" AddressLine2="" AddressLine3="" AddressLine4="" AddressLine5="" AddressLine6="" AlternateEmailID="" Beeper=""... (2 Replies)
Hi Folks,
Could you please advise what will be the unix command to replace the character in all xml's under a particular directory for example
let say I rite now at the following below location
$ cd /opt/apr/rt/conf
now under conf there are so many xml's and in those xml's i want to... (2 Replies)
I'd like to take the output of `pwsafe --exportdb > database.txt` and convert it to a KeePassX XML friendly format (feature request in pwsafe).
I found flat file converter but the syntax is beyond me with this example. Solutions are welcomed.
More details
Here is the pwsafe --> KeePassX XML... (2 Replies)
Discussion started by: graysky
2 Replies
LEARN ABOUT SUSE
ivmconfigconditions.xml
IVMCONFIGCONDITIONS.XML(5) File Formats Manual IVMCONFIGCONDITIONS.XML(5)NAME
IvmConfigConditions.xml - rules for processing hardware conditions by ivman(8)DESCRIPTION
IvmConfigConditions.xml specifies hardware conditions to be caught by ivman(8), and allows running of certain commands when devices emit
conditions.
IvmConfigConditions.xml is parsed as an XML file. The general form of the file is:
<?xml version="1.0" encoding="UTF-8"?>
<ivm:ConditionsConfig version="0.1" xmlns:ivm="http://www.eikke.com/ivm">
<ivm:Match name="matchname" value="matchvalue">
<ivm:Condition name="conditionname1" exec="command1" />
<ivm:Condition name="conditionname1" exec="command1" />
</ivm:Match>
...
</ivm:PropertiesConfig>
Each time a condition is emitted by a device, this file will be parsed. If the Match rule matches the device on which the condition came
from, and the Condition rule matches the name of the condition which occurred, then the command specified in the 'exec' option will be exe-
cuted.
A Match element can have any of the following names:
ivm.mountable
Whether or not HAL specifies that a device can and should be mounted. Must be "true" or "false".
hal.anything
The string in place of "anything" will be taken as the name of a HAL property string for the device, and the value of the prop-
erty will be compared to the value given. Run 'lshal' to see a list of HAL properties which can be used here.
* Match every device. Use with care!
As many Matches can be nested as is desired.
Condition names usually take the form of something like 'ButtonPressed', which may occur when an ACPI-enabled button is pressed on your
machine. See the HAL specification for a full list of possible conditions.
The exec attributes of Condition tags support substitution of HAL device properties. This is accomplished by surrounding the property name
with $ symbols. For instance, if $hal.volume.mount_point$ is within a command, it will be replaced with the volume's mount point before
execution. No character escaping is done in the substitution, but the characters ' and " are replaced with ?, so you can surround the sub-
stitution with quotes without fear.
Remember that this is an XML file, which means that characters which have a special meaning in XML (entities) need to be escaped. Some
characters which are popular in shell scripting (&, <, >) are among these special characters. As a quick reference, & becomes & , <
becomes < , > becomes > , ' becomes ' and " becomes " .
SEE ALSO ivman(8), IvmConfigBase.xml(5), IvmConfigActions.xml(5)
12 May 2005 IVMCONFIGCONDITIONS.XML(5)