12-09-2008
I will try it and report back..thanks
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I'm trying to replace a date in an XML file that has the format mm/dd/yyyy. I'm using the Unix date function to set up a variable with the current date but, when I try to replace the value in the XML file, the error message says it cannot be parsed. Here is the command I'm using
... (2 Replies)
Discussion started by: stonemonolith
2 Replies
2. Shell Programming and Scripting
Dear Sirs,
I want to cut the IP address from the following text line:
" mgmt.mib-2.bgp.bgpPeerTable.bgpPeerEntry.bgpPeerLastError.163.121.170.20 (OctetString): 0x04 00"
I want to get the (163.121.170.20) only.
Thanks in advance. (8 Replies)
Discussion started by: ahmed.zaher
8 Replies
3. Shell Programming and Scripting
This is a part of the output file (x.out, from a chemical software). I need to extract the xyz coordinates with the atom labels from this file.If it's possible i would like to use a bash shell script. I am new to this forum, how can I solve this problem.
DIPOLE X Y Z ... (1 Reply)
Discussion started by: kurosaki
1 Replies
4. Shell Programming and Scripting
Hi Guys,
I have a very large XML feed (2.7 MB) which crashes the server at the time of parsing. Now to reduce the load on the server I have a cron job running every 5 min.'s. This job will get the file from the feed host and keep it in the local machine.
This does not solve the problem as... (9 Replies)
Discussion started by: shridhard
9 Replies
5. UNIX for Dummies Questions & Answers
Hi,
I have this file name : xxx.77876767575.abc.77887.iiii
If to get only the xxx i will need to do this command:
i=xxx.77876767575.abc.77887.iiii
name=`echo $i |cut -f1 -d "."`
How do i get 77876767575.abc.77887.iiii without xxx in front?
Please advice.
Thanks (7 Replies)
Discussion started by: luna_soleil
7 Replies
6. UNIX for Dummies Questions & Answers
hi everybody..
I have a string like :
abcd:efgh
xxyy:yyxx
ssddf:kjlioi
ghtyu:jkksk
nhjkk:heuiiue
please tell me how i can display only the characters after ":" in the output
the output should be :
efgh
yyxx
kjlioi
jkksk
heuiiue
please give quick reply.. its urgent..!! (6 Replies)
Discussion started by: adityamitra
6 Replies
7. Shell Programming and Scripting
Hi,
How can I cut/copy or assign it to a variable of a value in xml tag.
for example:
below is the xml tag in an xml
<description>Successfully processed the request</description>
now I need a ouput like below.
my $description = /<description>($.)<\/description>/;
print... (1 Reply)
Discussion started by: thankful123
1 Replies
8. UNIX for Dummies Questions & Answers
I have a file that contains:
yahoo.com.23456
web.log.common.us.gov.8675
192.168.1.55.34443
john-doe.about.com.22233
64.222.3.4.120
sunny.ca.4442
how can i remove the strings after the last dot (.) and reprint the file?
Thanks. (3 Replies)
Discussion started by: apalex
3 Replies
9. Shell Programming and Scripting
Hi All,
I have the file & name is "/a/b/c/d/e/xyz.dat"
I need "/a/b/c/d/e/" from the above file name.
I tryning with echo and awk. But it not come. Please help me in this regard.
Thanks & Regards,
Dathu (3 Replies)
Discussion started by: pdathu
3 Replies
10. UNIX for Dummies Questions & Answers
Hi,
how to cut part of a string sing delimiter in reverse
input file
1,2,st-pa-tr-01,2,3,4,
2,3,ff-ht-05,6,7,8
how can i obtain strings till
st-pa-tr
ff-ht i.e cutting the last part og string -01 and -05
Thanks & Regards
Nivi
edit by bakunin: changed thread title (typo) (3 Replies)
Discussion started by: nivI
3 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)