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
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |