Search Results

Search: Posts Made By: Siv51427882
1,306
Posted By Siv51427882
Hello Don, I have tried below one code to...
Hello Don,

I have tried below one code to extract all the <jms-system-resource>

Code which i have tried
awk '
/<jms-system-resource>/{
flag=1
val=""
}
/<\/jms-system-resource>/{
...
1,813
Posted By Siv51427882
Hello Rudi, From the following output ...
Hello Rudi,

From the following output
---------- UMSJMSServer1709690790_subdeployment.properties: ----------

JMSModulename: UMSJMSSystemResource
Subdeploymentname: UMSJMSServer1709690790...
1,306
Posted By Siv51427882
Splitting the XML file and renaming the files
Hello Gurus,

I have a requirement to split the xml file into different xml files.
Can you please help me with that?
Here is my Source XML file
<jms-system-resource>
...
1,813
Posted By Siv51427882
Thanks RudiC .. That worked like a gem...:b:
Thanks RudiC .. That worked like a gem...:b:
1,813
Posted By Siv51427882
Extracting specific fields from an XML file
Hello All,

I have a requirement to split the input.xml file different files and i have tried using earlier examples(where i have posted in the forum), but still no luck
Here is my input.xml
...
2,336
Posted By Siv51427882
Thanks RudiC For your valuable input. Let me...
Thanks RudiC For your valuable input.
Let me try your suggestion first
2,336
Posted By Siv51427882
Hello Shell Gurus, I am able to get the...
Hello Shell Gurus,

I am able to get the first two files using 'awk'.
But i need some help on the extraction of the third file
Consider the following input


<jms-system-resource>
...
2,336
Posted By Siv51427882
Splitting the XML file into three different files
Hello Shell Guru's

I have a requirement to split the source xml file into three different text file.
And i need your valuable suggestion to finish this.

Here is my source xml snippet, here i...
9,272
Posted By Siv51427882
Sure. I will create a new thread(s) going...
Sure.
I will create a new thread(s) going forward.
And last script also successfully.
With that being said, this thread can be closed or resolved.

Thanks
Siva
9,272
Posted By Siv51427882
Hello Ravinder Sing, Please consider below...
Hello Ravinder Sing,

Please consider below code as input file

<jdbc-system-resource>
<name>wlsbjmsrpDataSource</name>
<target>AdminServer,osb_server1</target>
...
9,272
Posted By Siv51427882
Thank You R.Singh.. That worked like a Gem...!!!
Thank You R.Singh.. That worked like a Gem...!!!
9,272
Posted By Siv51427882
Hello R.Singh, Getting syntax errors like...
Hello R.Singh,

Getting syntax errors like below.

awk: cmd. line:6: print "DS_Name:"$3; > file
awk: cmd. line:6: ^ syntax error
awk: cmd. line:11: print "URL:"$3; ...
9,272
Posted By Siv51427882
Hello R.Singh, Is there a way to repeat the...
Hello R.Singh,

Is there a way to repeat the below mentioned code for multiple input files.

awk -F"[><]" '
/jdbc-data-source/{
a=1
}
a && /<name>.*<\/name>/{
print "DS_Name:"$3;
a=""...
9,272
Posted By Siv51427882
Hello R.Singh, That worked..!!! Thanks a...
Hello R.Singh,

That worked..!!!
Thanks a lot.
And sorry for confusion around.

Thanks
Siva
9,272
Posted By Siv51427882
PLease consider the input file as below ...
PLease consider the input file as below

<?xml version='1.0' encoding='UTF-8'?>
<jdbc-data-source xmlns="http://xmlns.oracle.com/weblogic/jdbc-data-source"...
9,272
Posted By Siv51427882
Hello RudiC, For Some reasons this thread...
Hello RudiC,


For Some reasons this thread is NOT allowing me to paste the complete code, since the code contains some web links.

Lemme try from HTML Tag

<?xml version='1.0'...
9,272
Posted By Siv51427882
Hello Rudi C, I have a file like below ...
Hello Rudi C,

I have a file like below

<?xml version='1.0' encoding='UTF-8'?>
<jdbc-data-source>
<name>DataSourceTest</name>
<jdbc-driver-params>
...
9,272
Posted By Siv51427882
Hello R.Singh, I have executed your code...
Hello R.Singh,

I have executed your code below.

awk -F"[><]" '
/<\/jdbc-data-source>/{
print "Param1:"param1 RS "Param2:"param2 RS "Param3:"param3 RS "Param4:"param4;
...
9,272
Posted By Siv51427882
Hello R.Singh, Consider the below code ...
Hello R.Singh,

Consider the below code

?xml version='1.0' encoding='UTF-8'?>
<jdbc-data-source >
<name>DataSourceTest</name>
<jdbc-driver-params>
...
9,272
Posted By Siv51427882
Hello R.Singh, Thanks for your kind help on...
Hello R.Singh,

Thanks for your kind help on this.
now, i have another xml file(DataSourceTest-8855-jdbc.xml) in different location.
i would like to access this file and write the contents into...
9,272
Posted By Siv51427882
Hello R.Singh&Yoda, I have another problem...
Hello R.Singh&Yoda,

I have another problem here.
Kindly consider the below code,

<jdbc-system-resource>
<name>EDNLocalTxDataSource</name>
<target>soa_server1</target>
...
9,272
Posted By Siv51427882
Extract the specific tags in a XML file
Hello Shell Gurus,

I have a requirement to get the specific tags from a XML file.
Here is my code snippet


<jdbc-system-resource>
<name>SDPData Source</name>
...
Showing results 1 to 22 of 22

 
All times are GMT -4. The time now is 07:11 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy