Jay Roy
asked on
count pattern occurance
Dear experts
I have a log file with xml data like
<party type="abc set="tyt"> <RefID referenceType="comb">1000< /RefID> </party>
<party type="abc3 set="tytre"> <RefID referenceType="comb">15000 </RefID> </party>
<party type="abcr set="tytrr"> <RefID referenceType="comb">16000 </RefID> </party>
...
is there any way i can count the number of <party> xmls i have in the file. For instnace above i have 3 party xmls.
Any idea what the command should be?
thanks
I have a log file with xml data like
<party type="abc set="tyt"> <RefID referenceType="comb">1000<
<party type="abc3 set="tytre"> <RefID referenceType="comb">15000
<party type="abcr set="tytrr"> <RefID referenceType="comb">16000
...
is there any way i can count the number of <party> xmls i have in the file. For instnace above i have 3 party xmls.
Any idea what the command should be?
thanks
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Do I run the command on the Unix command prompt? I am new to perl.
Thanks.