Search Results

Search: Posts Made By: viki
3,486
Posted By viki
Hi Shell_Life, My apologize for not giving...
Hi Shell_Life,

My apologize for not giving the full config in the first mail.

Thanks,
Viki
3,486
Posted By viki
Thanks for quick response. The suggested...
Thanks for quick response.

The suggested script is able to parse the XML tag. But suggested script prints all the lines (except XML tags) present in the file.
My requirement is to extract & print...
3,486
Posted By viki
Handling of the various XML syntax scenario
Hi hackers,

I would like to parse the value of one XML tag (e.g. <TAG>).
Following is the script that I have written.

awk -F"[<>]" '/<TAG>/,/<\/TAG>/ {
if ( NF == 1 ) {
sub(/^[...
34,107
Posted By viki
Hi anbu23, it works.... :) Thanks, ...
Hi anbu23,

it works.... :)

Thanks,
Viki
34,107
Posted By viki
Hi anbu23, Thanks for quick reply :) . I am...
Hi anbu23,

Thanks for quick reply :) . I am getting the following output with the suggested 'sed command'.

> sed -n...
34,107
Posted By viki
Parse XML file
Hi,

I need to parse the following XML data enclosed in <a> </a> XML tag using shell script.

<X>
.....
</X>
<a>
<b>
<c>data1</c>
<c>data2</c>
</b>
<d>
...
Showing results 1 to 6 of 6

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