Search Results

Search: Posts Made By: sree_chari
2,815
Posted By sree_chari
Aia , Thanks a lot. That helped.
Aia , Thanks a lot. That helped.
2,815
Posted By sree_chari
Aia, Thanks for your response. Closer but not...
Aia,
Thanks for your response. Closer but not there yet. The out is now mv TestMsg2010-10-19_20_20_54.xml 2010-10-19_20_20_54.xml . The Root Element is missing. Regards.
2,815
Posted By sree_chari
Franklin52 , I see only mv...
Franklin52 ,
I see only mv TestMsg2010-10-19_20_20_54.xml R1Msg as output. Any clues what goes wrong will be appreciated.Thanks.
2,815
Posted By sree_chari
It gives me the output R1Msg R2Msg R3Msg . ...
It gives me the output R1Msg R2Msg R3Msg .
Help me how would I make it as below.

R1Msg2010-10-19_20_20_54.xml
R2Msg2010-10-19_20_20_58.xml
R3Msg2010-10-19_20_21_00.xml

Thanks for your...
2,815
Posted By sree_chari
Renaming multiple files in a folder
Hi All,
I am trying to change the XML filename in a folder to the rootelement in the XML file.
Example: TestMsg2010-10-19_20_20_54.xml
<?xml version="1.0" encoding="utf-8" ?>
<R1Msg...
2,880
Posted By sree_chari
Hi All, I am trying to change the XML...
Hi All,

I am trying to change the XML filename in a folder to the rootelement in the XML file.

Now I have something like this.
for i in *.xml; do echo $i;awk -F"[<>]" 'NR==2{print $2}' $i;...
3,729
Posted By sree_chari
Renaming multiple files in a folder
Hi ,

Need help to rename the files in a folder. The .xml needs to be removed from the middle and appended to the end as in the example shown .

Example From: ...
2,880
Posted By sree_chari
Hi All, Thanks for your quick response. ...
Hi All,

Thanks for your quick response.

This helped what I wanted to achieve.
awk -F"[<>]" 'NR==2{print $2}' file
Best Regards,

Chari
2,880
Posted By sree_chari
Extracting the Root Element from the XML File
Any help to extract the root element from an XML file will be appreciated.

Example: test.xml
<?xml version="1.0" encoding="utf-8" ?>
<TestXMLMessage>
<TestRec>
<ID>1000</ID>
</TestRec>...
Showing results 1 to 9 of 9

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