Hi! I'm just new here and don't know much about shell scripting. I just want to ask for help in creating a shell script that will parse a string or value of the status in the xml file. Please sample xml file below. Can you please help me create a simple script to get the value of status? Also it... (46 Replies)
Hello Scripting Gurus,
I need help with extracting data from the XML file using shell script.
The data is in a large XML and I need to extract the id values of all completedworkflows. Here is a sample of it. Input and output data is also in the attached text files.
<wfregistry>... (5 Replies)
Hi All,
I have been working on something that doesn't seem to have a clear regex solution and I just wanted to run it by everyone to see if I could get some insight into the method of solving this problem.
I have a flat text file that contains billing records for users, however the records... (5 Replies)
Hi Everybody,
I have an XML file containing some data and i want to extract it, but the specific issue in my file is that the data is repeated some times like the following example :
<section1>
<subsection1>
X=...
Y=...
Z=...
<\subsection1>
<subsection2>
X=...
Y=...
Z=...... (2 Replies)
Hi All,
I have a large xml file of invoices. The file looks like below:
<INVOICES>
<INVOICE>
<NAME>Customer A</NAME>
<INVOICE_NO>1234</INVOICE_NO>
</INVOICE>
<INVOICE>
<NAME>Customer A</NAME>
<INVOICE_NO>2345</INVOICE_NO>
</INVOICE>
<INVOICE>
<NAME>Customer A</NAME>... (9 Replies)
Hi,
I have to make an script according to these:
- I have couples of files like:
xxxxxxxxxxxxx.csv
xxxxxxxxxxxxx_desc.xml
- every xml file has diferent fields, but keeps this format:
........
<defaultName>2011-02-25T16:43:43.582Z</defaultName>
........... (2 Replies)
Hi All,
I need to parse some statistic data from the "measInfo" -eg. 25250000 (as highlighted) and return the result into line by line, and erasing all other unnecessary info/tag.
Thought of starting with grep "measInfoID="25250000" but this only returns 1 line. How do I get all the output... (8 Replies)
Hi,
Can anybody help to solve this. I want to parse some xmldata along with the URL in the Shell.
I'm calling the URL via the curl command
Given below is my shell script file
export... (7 Replies)
Hi, I am new to advanced scripting.
I need to get top 20 records from database (Sybase) with a condition that all Char/varchar columns should have more than 4 characters.
I need to do this via shell scripting, I have got half logic (on how to get varchar/char columns and stored it in a... (2 Replies)
Hi All,
I have a requirement to extract para in XML file on the basis of another list file having specific parameters.
I will extract these para from XML and import in one scheduler tool.
file2
<FOLDER DATACENTER="ControlMserver" VERSION="800" PLATFORM="UNIX" FOLDER_NAME="SH_AP_INT_B01"... (3 Replies)
Discussion started by: looney
3 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)