Hello , I am using cleardiff to compare the changes in a file , I am really concern about the lines that were changed , so when I run cleardiff , I get the following :
$ cleardiff v5/srcc/smestrans.cpp/6 v5/srcc/smestrans.cpp/7
********************************
<<< file 1: v5/srcc/smestrans.cpp/6
>>> file 2: v5/srcc/smestrans.cpp/7
********************************
------[after 42]-----------|------[inserted 43]-------------
-| #include "lyr1.h" // Laye+
|-
----[changed 519]----------|-----[changed to 520-522]-----
if ( _instd->phy_comm_chan+|//if ( _instd->phy_comm_ch+
-|
|if ( _instd->phy_comm_chan+
|-
-----[changed 531]---------|-----[changed to 534-535]------
if ( _instd->phy_comm_chan+|if ( (Layer1Entity::FindV5+
-| == V52StackPtr->Ge+
|-
so what I care about , is getting the numbers on the right side which are 43 520-522 534-535 and send them to an output file which will look like this
43
520-522
543-535
thanks for hints guys
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.