Search Results

Search: Posts Made By: pauldx
3,443
Posted By pauldx
I did this way in one command and its working...
I did this way in one command and its working great ...

perl -ne '$"=qq{\n}; @mail = $_=~/saw:user name="(.*?)"/g and print "@mail\n"' demand360+alerts/* rate360+alerts/* | sort | uniq >...
3,443
Posted By pauldx
My apologize. I am new to the forum . Sorry I...
My apologize. I am new to the forum .
Sorry I mean I want to use your code below . But I need to understand how can I save outputfile using perl command below but need unique email list. I don't...
3,443
Posted By pauldx
excellent much better now. thank you I was...
excellent much better now. thank you

I was trying in loop like belowand this indeed work but yours are much better...
now last and final question is I want unique list of emails in target output...
3,443
Posted By pauldx
Excellent . Indeed it does. Thank you very much...
Excellent . Indeed it does. Thank you very much but I output is coming like this :
chudgins@gmail.com
So I tried this :
perl -nle '@mail = $_=~/saw:user name="(.*?)"/g and map {print "$_"}...
3,443
Posted By pauldx
I am very sorry . You are absolutely correct. I...
I am very sorry . You are absolutely correct. I was trying to see whats going wrong and realized that my tool gave different XML than actual XML in file on filesystem .

So I tried to ran the sed...
3,443
Posted By pauldx
Sorry but not helping too much . Might be XML is...
Sorry but not helping too much . Might be XML is badly formatted . This is entire XML.

<?xml version="1.0" encoding="UTF-8"?>
<saw:ibot xmlns:saw="com.siebel.analytics.web/report/v1" version="1"...
3,443
Posted By pauldx
thanks for prompt response. I am sorry but how do...
thanks for prompt response. I am sorry but how do I pass input file name ?
3,443
Posted By pauldx
Parsing XML using command line
Hi Experts,

How do I parse a XML with below contents

<saw:user name="mbussey@xyz.com" />
<saw:user name="kimmy.chan@pqr.com" />
<saw:user name="chudgins@gmail.com" />
...
Showing results 1 to 8 of 8

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