Hi Melly,

Object or Message Object is data (in the Form |7|1|1553) in a Packet(a Networking Term). For eg:- |7|1|1553 is one Object. Similarly |7|5|18613745 is another Object and so on.

Identifier is one of the component in the Message Object. For eg:- in the Object |7|1|1553, 7 is the first identifier, 1 is the second identifier and 1553 is the third identifier.

There are 'N' number (N being a real number) of Message Objects (I have mentioned just 6) under the header in each of the 2 Files i.e. Test and Test1.

Both these Files are Log Files which are already given to the user and the complete data format in both Files will look like as below :-

1) In File 'Test' :-

#LOGNUM|1|OPERATIONAL

|O%:CCLN-1-CBS1

|8.2.0.4352.1.1|8.2.0.4352.1.1|0x3|14|6|3|97.232.1.2|6

|7|1|1553

|7|2|13

|7|3|1870

|5|4|0

|7|5|22087238

|7|6|73162814

: :

: :

and so on ....

2) In File 'Test1' :-

#LOGNUM|1|OPERATIONAL

|O%:CCLN-1-CBS1

|8.2.0.4352.1.1|8.2.0.4352.1.1|0x3|14|6|3|97.232.1.2|6

|7|1|1545

|7|2|14

|7|3|1981

|5|4|0

|7|5|18613745

|7|6|81837527

: :

: :

and so on....

ii) Our purpose is to add the identifiers of objects (ignoring the 1st and 2nd place identifiers which are always common and adding only the identifiers at the 3rd place), corresponding to each matched header like the following:-

|7|1|1553 + |7|1|1545 = |7|1|3098

|7|2|13 + |7|2|14 = |7|2|27

|7|3|1870 + |7|3|1981 = |7|3|3851

|5|4|0 + |5|4|0 = |5|4|0

|7|5|22087238 + |7|5|22087238 = |7|5|44174476

|7|6|73162814 + |7|6|81837527 = |7|6|155000341

The rest of the details, I have already explained in my previous posting.

Request you to please give your very valuable Inputs.

Thanks and Regards,

KiranKumar K.


In reply to Re^4: Adding object identifiers corresponding to each IP and printing them to O/P File. by Kiran Kumar K V N
in thread Adding object identifiers corresponding to each IP and printing them to O/P File. by Kiran Kumar K V N

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.