Help with shell script to extract data from XML file
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.
Hi,
This is the xml file that i have.
- <front-servlet platform="WAS4.0" request-retriever="SiteMinder-aware" configuration-rescan-interval="60000">
<concurrency-throttle maximum-concurrency="50" redirect-page="/jsp/defaulterror.jsp" />
- <loggers>
<instrumentation... (5 Replies)
Hi All,
I will be getting a huge XML file with a lot of records in it. I need to convert it into multiple data files.
SAMPLE XML FILE
<ABSProductCatalog xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
- <ProductSalesHierachy>
- <Portfolios>
- <Portfolio productCode="P1">
... (8 Replies)
If I have a log like :
Mon Jul 19 05:07:34 2010; TCP; eth3; 52 bytes; from abc to def
Mon Jul 19 05:07:35 2010; UDP; eth3; 46 bytes; from aaa to bbb
Mon Jul 19 05:07:35 2010; TCP; eth3; 52 bytes; from def to ghi
I will need an output like this :
Time abc to def... (1 Reply)
Hi,
I am new to shell scripting. I need to extract data between repeating tags from an xml file and store the data in an array to process it further.
<ns1:root xmlns:ns1="http://example.com/config">
<ns1:interface>in1</ns1:interface>
<ns1:operation attribute1="true" attribute2="abd"... (2 Replies)
Hi evry1,
This is my 1st post in this forum.Pls help me
I want to extract some data froma xml file which has 2000 lines using shell scripting. Actually my xml file has some "audio and video codes" which i need to arrange in a column wise format after extracting it using shell scripting.I... (4 Replies)
Hi ,
I have input file as XML. following are input data
#complex.xml
Code:
<?xml version="1.0" encoding="UTF-8"?><TEST_doc xmlns="http://www.w3.org/2001/XMLSchema-instance"> <ENTRY uid="123456"> <protein> <name>PROT001</name> <organism>Human</organism> ... (1 Reply)
Hi Guys,
I am new to shell script.I need your help to write a shell script.
I need to write a shell script to extract data from a .csv file where columns are ',' separated.
The file has 7 columns having values say column 1,column 2.....column 7 as below along with their values.
Name, Address,... (7 Replies)
Hi everyone,
I have a csv file which has data with different heading and column names as below.
Static Data Ingested
,,,,,,,,,,,,Known Explained Rejections
Column_1,column_2,Column_3,Column_4,,Column_6,Column_7,,% Column_8,,Column_9 ,Column_10 ,... (14 Replies)
I have this 5GB file, and i want to extract from the file particulars pattern.
this is my script:
//
count=`grep -wc "MSISDN" file_name`
k=1
>OUTPUT
>OUTPUT_Final
while
do
cat file_name | awk -F":" -v var="$k" '$1=="MSISDN" {m++}m==var{print; exit}' >> OUTPUT
cat file_name |awk -F":"... (33 Replies)
hi all, here is the sample log file and these errors are repeated in log file..
i need all the repeated time stamp ,severity and message tags needs to print in output file.. through shell script
<log-message>
<timestamp>2019-03-13T04:52:49.648-05:00</timestamp>
<severity>ERROR</severity>... (17 Replies)
Discussion started by: ravi
17 Replies
LEARN ABOUT LINUX
dh_installxmlcatalogs
DH_INSTALLXMLCATALOGS(1) Debhelper DH_INSTALLXMLCATALOGS(1)NAME
dh_installxmlcatalogs - install and register XML catalog files
SYNOPSIS
dh_installxmlcatalogs [debhelper options] [-n]
DESCRIPTION
dh_installxmlcatalogs is a debhelper program that installs and registers XML catalog files. It complies with the Debian XML/SGML policy.
The file debian/package.xmlcatalogs lists the local XML catalog files to be installed per package as well as the XML entities in those
local XML catalog files that are to be registered in the XML catalog system.
The local XML catalog file entries in that file should be of the form "local;source;dest", where the verbatim "local" indicates this is an
entry for a local XML catalog file, "source" indicates where the local XML catalog resides in the source tree, and "dest" indicates the
destination location for the local XML catalog under the package build area. "dest" should start with /usr/share/xml/.
The entries for the XML entities to be registered in the package XML catalog file should be of the form "package;type;id;catalog", where
the verbatim "package" indicates this is an entry for an XML entity to be registered in the package XML catalog file, "type" indicates the
XML entity type (public, system, uri), "id" indicates the XML entity id, and "catalog" indicates the local XML catalog file.
The entries for the XML entities to be registered in the root XML catalog file should be of the form "root;type;id", where the verbatim
"root" indicates this is an entry for an XML entity to be registered in the root XML catalog file, "type" indicates the XML entity type
(public, system, uri), and "id" indicates the XML entity id.
If an entry for is to be registered identically in the root catalog and the package catalog file, you can use the form
"root-and-package;type;id;catalog", where the verbatim "root-and-package" indicates this is an entry for an XML entity to be registered in
both the root and package XML catalog files, "type" indicates the XML entity type (public, system, uri), "id" indicates the XML entity id,
and "catalog" indicates the local XML catalog file.
XML entity types are described in update-xmlcatalog(8). Using the "root" or "package" commands, a type of "public" will general
"delegatePublic" statements in the applicable catalog file. Generally you will want to use the types "public" for any formal public
identifiers, and "system" for any files on the local filesystem or URLs. "uri" is only used for non-local files which are not part of the
external document subset, e.g., they are not used for entities or DTDs.
dh_installxmlcatalogs automatically adds maintainer script snippets for the registration and unregistration of the listed XML entities in
the XML catalog system (unless -n is used). A dependency on the xml-core package will be added to "${misc:Depends}", so be sure to use
that variable in the file debian/control. See dh_installdeb(1) for an explanation of Debhelper maintainer script snippets.
OPTIONS -n, --noscripts
Do not modify postinst/postrm/prerm scripts.
NOTES
Note that this command is not idempotent. "dh_clean -k" should be called between invocations of this command. Otherwise, it may cause
multiple instances of the same text to be added to maintainer scripts.
SEE ALSO debhelper(7)
/usr/share/doc/xml-core/
AUTHOR
Ardo van Rangelrooij <ardo@debian.org>
Adam Di Carlo <aph@debian.org>
perl v5.10.0 2008-10-14 DH_INSTALLXMLCATALOGS(1)