Hi PerlMonks,
many thanx for your help!
I try to specify everything better this time.
So I have two example files, which should be produced by my script,
(to reach this state is no problem):
File: route_1
3 r26-lo1-ixi1.vie.as1901.net (193.154.162.15)
4 r4-vlan-167-ixi1.vie.as1901.net.167.154.193.in-addr.arpa (193.154.167.1)
5 msw02-01-w15-vlan-145-dbg2.vie.at.eu.net (193.154.145.19)
6 194.96.203.74 (194.96.203.74)
File: route_2
3 r26-lo1-ixi1.vie.as1901.net (193.154.162.15)
4 r4-vlan-167-ixi1.vie.as1902.net.167.154.193.in-addr.arpa (193.154.167.1)
5 msw02-01-w15-vlan-145-dbg2.vie.at.eu.net (193.154.145.19)
6 64.233.174.114 (64.233.174.114)
7 194.96.203.74 (194.96.203.74)
Diff:
diff route_1 route_2
2c2
< 4 r4-vlan-167-ixi1.vie.as1901.net.167.154.193.in-addr.arpa (193.154.167.1)
---
> 4 r4-vlan-167-ixi1.vie.as1902.net.167.154.193.in-addr.arpa (193.154.167.1)
4c4,5
< 6 194.96.203.74 (194.96.203.74)
---
> 6 64.233.174.114 (64.233.174.114)
> 7 194.96.203.74 (194.96.203.74)
There are two differences, which I made in the route.
My question is how to interpret the diff output?
I mean, how to count the diffs in the route?
A diff in a route is for example if a IP or hostname of a hop is changed or there is a new hop...
I would like count to the diffs, but I do not know what to do with the diff output, how to parse it.
Many thanx for any help!
Clint
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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.