Greetings,
I have an XML : file.xml
I am using sed to replace abcd with the desired value dynamically without knowing the actual value.
I don't have any issues with this command in Linux but on Solaris machine, I am getting the error:
If I remove >[-[:alnum:]./]\{1,\} and put the actual value, it is fine. But I have do it dynamically as I use it within the script to replace the existing value with the given value.
Can somebody please advise.
Thanks,
Chiru
Last edited by Yogesh Sawant; 04-08-2008 at 02:45 PM..
Reason: added code tags
Hi,
i call my shell like:
my_shell "my project name"
my script:
#!/bin/bash -vx
projectname=$1
sed s/'PROJECT_NAME ='/'PROJECT_NAME = '$projectname/ <test_config_doxy >temp
cp temp test_config_doxy
the following error occurres:
sed s/'PROJECT_NAME ... (2 Replies)
Search and Replace a string pattern with empty in an xml file in unix:
My xml file would be like this :
<Accounts><Name>Harish</Name><mobile>90844444444444445999 </mobile><TRIG>srcujim-1</TRIG></Accounts><Accounts><Name>Satish</Name><mobile>908999</mobile><TRIG>ettertrtt-1</TRIG></Accounts>
... (1 Reply)
Hello Unix gurus!
I'm a unix newbie. Can I use sed to replace a keyword in an xml file and convert this keyword with an output of a unix cat command?
for example: <test>keyword</test>
and temp.txt = hello!
I would like to replace "keyword" with the output of "cat temp.txt".
I think... (6 Replies)
Can someone tell me how I can do this?
e.g:
a=$(echo -e wert trewt ertert ertert ertert erttert
erterte
rterter
tertertert
ert)
How do i replace the STRING with $a?
I try this:
sed -i 's/STRING/'"$a"'/g' filename.ext
but this don' t work (2 Replies)
here is what i want to achieve... consider a file contains below contents. the file size is large about 60mb
cat dump.sql
INSERT INTO `table1` (`id`, `action`, `date`, `descrip`, `lastModified`) VALUES (1,'Change','2011-05-05 00:00:00','Account Updated','2012-02-10... (10 Replies)
Hi All
i need to replace the url1 inside <remote> tag in below xml in first instance and in the second instance with url2.
any help appreciated
<locations>
<hudson.scm.SubversionSCM_-ModuleLocation>
<remote>https://svn2015.com/svn/repos/internalshard</remote>
... (4 Replies)
Hello,
I have below xml file, I want to find line default-value and replace the string within quotes followed by default-value "moni/Websphere/". Replace moni/Websphere/ with monitor/AMQ/
<monitor>
<name>WebsphereMqMonitor</name>
<type>managed</type>
<argument... (4 Replies)
Sorry for the long/weird title but I'm stuck on a problem I have. I have this XML file:
</member>
<member>
<name>TransactionID</name>
<value><string>123456789123456</string></value>
</member>
<member>
<name>Number</name>
... (9 Replies)
Hi All,
I'm new to sed.
In following XML file
<interface type='direct'>
<mac address='52:54:00:86:ce:f6'/>
<source dev='eno1' mode='bridge'/>
<model type='virtio'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
</interface>
... (8 Replies)
Discussion started by: varunrapelly
8 Replies
LEARN ABOUT DEBIAN
xml2-config
GNOME-XML(1) 1.1.0 GNOME-XML(1)NAME
xml-config - script to get information about the installed version of GNOME-XML
SYNOPSIS
xml-config [--prefix[=DIR]] [--libs] [--cflags] [--version] [--help]
DESCRIPTION
xml-config is a tool that is used to determine the compile and linker flags that should be used to compile and link programs that use
GNOME-XML.
OPTIONS
xml-config accepts the following options:
--version
Print the currently installed version of GNOME-XML on the standard output. Add the --static option to print the linker flags that
are necessary to statically link a GNOME-XML program.
--libs Print the linker flags that are necessary to link a GNOME-XML program.
--cflags
Print the compiler flags that are necessary to compile a GNOME-XML program.
--prefix=PREFIX
If specified, use PREFIX instead of the installation prefix that GNOME-XML was built with when computing the output for the
--cflags and --libs options. This option must be specified before any --libs or --cflags options.
AUTHOR
This manual page was written by Fredrik Hallenberg <hallon@lysator.liu.se>, for the Debian GNU/linux system (but may be used by others).
Version 3 July 1999 GNOME-XML(1)