12-13-2009
Will this work on korn shell, can you suggest the awk option please?
Also in what you have shown below, i have as mentioned before have 6 tags which need data replacement, so how do i go about??
![Confused Smilie](https://www.unix.com/images/smilies/confused.gif)
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi
I need one clarication..
I have an xml having many entries like this..
<Cust_Name>Tom Cruise</Cust_Name>
I want to rename this to
<Cust_Name>TEST</Cust_Name>
Pls let me know how to do it..
I was trying some basic commands like
grep 'Cust_Name' * | tr '>' ',' | tr '<' ... (2 Replies)
Discussion started by: wip_vasikaran
2 Replies
2. UNIX for Dummies Questions & Answers
Hi,
I'd like to use sed in order to replace %20 and other "special" characters that are represented with % and some number combination in xml file. Typical line looks like this:
/Users/imac1/Music/iTunes/iTunes... (6 Replies)
Discussion started by: andrejm
6 Replies
3. Shell Programming and Scripting
I am not sure how to approach this find/replace using a shell script. Any help or guidance appreciated.
I want to find this:
<objects/>
<thumb>thumb_0001.jpg</thumb>
<preview>preview_0001.jpg</preview>
And replace with something like this:
<objects>... (1 Reply)
Discussion started by: jimraynor
1 Replies
4. Shell Programming and Scripting
Hello,
I have an xml file whose contacts are like below:
<Node>Apple
<B>Value1</B>
<B>Value2</B>
<B>Value3</B>
</Node>
<Node>Mango
<B>Value1</B>
<B>Value2</B>
<B>Value3</B>
</Node>
<Node>Apple
<B>Value1</B>
<B>Value2</B>
<B>Value3</B>
</Node>
<Node>Bannana (3 Replies)
Discussion started by: umarsatti
3 Replies
5. Linux
Please help me, wasted hrs:wall:, to find this soulution:-
I need a command that will work on file (xml) and replace multiple occurrence (more than 2 times)
Examples
1. '==='
2. '===='
3. '======='
should be replaced by just '=='
Note :- single character should be replaced. (=... (13 Replies)
Discussion started by: RedRocks!!
13 Replies
6. Shell Programming and Scripting
Input-xml
<weblogic-web-app>
<session-descriptor>
<session-param>
<param-name>SysName</param-name>
<param-value>smilyface</param-value>
</session-param>
<session-param>
<param-name>InternetProtocol</param-name>
<param-value>xxxxxxxx</param-value>
... (2 Replies)
Discussion started by: linuxadmin
2 Replies
7. Shell Programming and Scripting
Hi All,
My XML file looks like below:
<logEvent xsi:type="logservice:LogEvent" timestamp="1394713811052" severity="3" messageCode="TM_6228" message="Writing session output to log file ." user="" stacktrace="" service="" serviceType="IS" clientNode="dev" pid="712" threadName="DIRECTOR"... (3 Replies)
Discussion started by: galaxy_rocky
3 Replies
8. Shell Programming and Scripting
As per the requirement I need to replace XML tag with old to new on one of the XML file.
Old<com : DEM>PHI</com : DEM>
New<com : DEM>PHM</com : DEM>
Please someone provide the sed command to replace above mentioned old XML tag with new XML tag (2 Replies)
Discussion started by: siva83
2 Replies
9. Solaris
I need a way to to check if a value in a file that has this XML format is less than or equal to current system date/time. if it is I need to override it with a future date/time:
Here is the data sample:
<?xml version="1.0"... (1 Reply)
Discussion started by: mrn6430
1 Replies
10. UNIX for Beginners Questions & Answers
Dear Unix guru,
I have a .XML file which is being used to load data to oracle. This file comes on unix box and one of the tag in xml is oracle key word. I want to find that tag and replace with new tag on the fly
For example
I will get one of the tag in xml is as below
<from>Test Test... (12 Replies)
Discussion started by: guddu_12
12 Replies
LEARN ABOUT DEBIAN
ooo2dbk
OOo2Dbk(1) General Commands Manual OOo2Dbk(1)
NAME
OOo2Dbk - program to convert OpenOffice.org-Writer (ODT and SXW) files to DocBook XML documents.
SYNOPSIS
OOo2Dbk [options] openoffice.org-file
DESCRIPTION
This manual page documents briefly the OOo2Dbk commands.
OPTIONS
This version of OOo2Dbk understands the following command line options.
-h, --help
Show summary of options.
-cFILE, --config=FILE
Use FILE as the file path for the program configuration file. Defaults to the global /etc/ooo2dbk.xml configuration file or to the
ooo2dbk.xml configuration file in the ooo2dbk executable directory.
-zFILE, --zipfile=FILE
Use FILE as the filename for the generated ZIP archive
-dFILE, --dbkfile=FILE
Use FILE as the filename for the generated DocBook XML file. This option has no effect if the -z/--zipfile option is used.
-a, --article
Produce a DocBook XML article. This is the default.
-b, --book
Produce a DocBook XML book.
-xFILE, --xslt=FILE
Use FILE as the file path for the XSLT stylesheet. Defaults to the ooo2dbk.xsl stylesheet.
-mNAME, --cmdxslt=NAME
Use command NAME as the XSLT processor. Available command names are defined in OOo2Dbk /etc/ooo2dbk.xml file. Defaults to xsltproc.
-f, --flatxml
Preserve the intermediate OpenOffice.org XML file (global.xml)
-v, --verbose
Print additional information to stdout when running conversion.
AUTHOR
OOo2Dbk was written by Indesko (http://www.indesko.com/)
This manual page was written by Mohammed Adnene Trojette <adn+deb@diwi.org>, for the Debian project (but may be used by others).
January 7, 2005 OOo2Dbk(1)