05-09-2013
Thank you Scott!
Using the above command all the xml files in the jar are getting extracted on the unix box whereas I want contents of just one xml(that matches a pattern) from the jar to be written in a file on the box.
For e.g:
20130508.abc.jar is the jar file that has the following xmls:
/archiveDir/pqr_1234567890.xml
/archiveDir/abc_4444444444.xml
/archiveDir/def_5555555555.xml
I want the contents of say... abc_4444444444.xml only written in an xml on my box, which is under the "archiveDir" directory. I do not want all the jar files extracted, just this one: abc_4444444444.xml
Can you please help me with this..
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have some xml files that got created by exporting a website from RedDot. I would like to extract the cost,
course number, description, and meeting information.
<?xml version="1.0" encoding="UTF-16" standalone="yes" ?>
- <PAG PAG0="3AE6FCFD86D34896A82FCA3B7B76FF90" PAG3="525312"... (3 Replies)
Discussion started by: chrisf
3 Replies
2. UNIX for Dummies Questions & Answers
Hi,
Within a UNIX shell script I need to extract a value from an XML field. The field will contain different values but will always be 6 digits in length. E.g.:
<provider-id>999999</provider-id>
I've tried various ways but no luck. Any ideas how I might get the provider id (in this case... (2 Replies)
Discussion started by: pnclayt11
2 Replies
3. Shell Programming and Scripting
Hi ,
I have one xml file contains more than 60 lines. I need to extract some details from the file and store it in new file.Not the whole file
Please find the xml file below:
<?xml version="1.0" encoding="UTF-8"?>
<DeploymentDescriptors xmlns="http://www.tibco.com/xmlns/dd">
... (6 Replies)
Discussion started by: ckchelladurai
6 Replies
4. Shell Programming and Scripting
Hi,
In a single line I have the below xml content
<lst name="responseHeader"><int name="status">0</int><int name="QTime">1</int></lst><lst name="status"><lst name=""><str name="name"/><str name="instanceDir">/var/www/search/current/Search/solr/./</str><str... (5 Replies)
Discussion started by: ashokvpp
5 Replies
5. Shell Programming and Scripting
Hello All,
I want to write a shell script for extracting a content from a xml file
the xml file looks like this:
<Variable name="moreAxleInfo">
<type>
<Table>
<type>
<NamedType>
<type>
<TypeRef... (11 Replies)
Discussion started by: suvendu4urs
11 Replies
6. Shell Programming and Scripting
Hi ,
I have input file as XML. following are input data
#complex.xml
<?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)
Discussion started by: mohan sharma
1 Replies
7. Shell Programming and Scripting
Hi Guys,
I am in a need to extract data from a xml file. The XML file format is as below.
<data jsxnamespace="propsbundle" locales="">
<locale>
<!--Error messages starts-->
<record jsxid="CHARPAIR001" jsxtext=" must be selected"></record>
<record... (1 Reply)
Discussion started by: Showdown
1 Replies
8. UNIX for Dummies Questions & Answers
<?xml version = '1.0' encoding =... (8 Replies)
Discussion started by: Siva SQL
8 Replies
9. Shell Programming and Scripting
Hello everybody,
I have a double mission with some XML files, which is pretty challenging for my actual beginner UNIX knowledge. I need to extract some strings from multiple XML files and create a new XML file with the searched strings..
The original XML files contain the source code for... (12 Replies)
Discussion started by: milano.churchil
12 Replies
10. Shell Programming and Scripting
I have this XML file format and all in one line:
Fri Dec 23 00:14:52 2016 Logged Message:689|<?xml version="1.0" encoding="UTF-8"?><PORT_RESPONSE><HEADER><ORIGINATOR>XMG</ORIGINATOR><DESTINAT... (16 Replies)
Discussion started by: mrn6430
16 Replies
LEARN ABOUT DEBIAN
xgfconfig
XGFCONFIG(1) General Commands Manual XGFCONFIG(1)
NAME
xgfconfig - configuration program for Xgridfit
SYNOPSIS
xgfconfig options [list]
DESCRIPTION
Xgfconfig selects XSLT processors and RELAX NG validators for Xgridfit to use; it can also be used to specify a new Xgridfit base direc-
tory.
Xgridfit maintains lists of validators and processors; on starting, it consults these lists and runs the first validator and processor it
can find. Xgfconfig reorders these lists so that your preferred programs are looked for first. Xgfconfig may be invoked in one of these
forms:
$ xgfconfig --processors processor-list
$ xgfconfig --validators validator-list
$ xgfconfig --xgridfit-dir /xgridfit/directory
$ xgfconfig --show
The first of these selects processors (one or more of libxslt, lxml, xsltproc, saxon-6, saxon-9, xalan-j, xalan-c, 4xslt); the second
selects validators (one or more of libxml2, lxml, jing, msv, rnv); the third specifies a complete path to the Xgridfit base directory (use
it if you have installed Xgridfit in your own account rather than system wide); the fourth displays the current configuration.
Several of the processors and validators that Xgridfit knows about are Java programs; for these, Xgridfit needs the name and location of a
.jar file (by default it assumes certain standard file names, found in /usr/share/java). Specify this with a hash-mark followed by a com-
plete path-name for the file. Here are sample command lines:
$ xgfconfig -p saxon-9#/usr/local/share/java/saxon9he.jar lxml
$ xgfconfig --config=config.xml -V rnv msv#/home/me/java/msv.jar
The second of these commands stores the configuration in the file config.xml in the current directory. (When it starts, Xgridfit looks
first for a file config.xml in the current directory; failing that, it looks for ~/.xgridfit/config.xml (Linux/Mac) or some-path (Windows);
finally it looks in the Xgridfit base directory before giving up and using the default configuration.)
An Xgridfit configuration file is a simple XML file, easily editable by users. The entries in it should be all but self-explanatory.
OPTIONS
--config
The configuration file to read or write. If this is not specified, Xgfconfig will search in the standard places (see above) for an
existing configuration file for which the user has write privileges. Failing that, it will create a configuration file in the
directory ~/.xgridfit (Linux/Mac) or some-dir (Windows). If the user is root or has administrative privileges, Xgfconfig will create
the file in the Xgridfit base directory.
-h, --help
Display a help message and exit.
-p, --processors
The list following the options is a list of processors.
-s, --show
Display the current configuration and exit.
-V, --validators
The list following the options is a list of validators.
-x, --xgridfit-dir
Following the options is the full pathname of the Xgridfit base directory.
SEE ALSO
fontforge(1), xgridfit(1), ttx2xgf(1), xgfupdate(1).
AUTHOR
Xgfconfig was written by Peter Baker <psb6m@virginia.edu>.
This manual page was written by Peter Baker
2010-01-16 XGFCONFIG(1)