Hi. This is in connection with a similar query which I had posted yesterday. I have a file which looks like this.

2gqt_FAD_A_601 = d.145.1.2- 2i0z_FAD_A_501 = c.3.1.8-e.74.1.1- 1n1e_NDE_A_400 = a.100.1.6-c.2.1.6- 2qzl_IXS_A_449 = b.50.1.2- 2ydx_TXP_E1339 = c.2.1.2- 3g8i_RO7_A___1 = c.2.1.2- 1llf_F23_A_800 = c.69.1.17- 1y0g_8PP_A_320 = b.61.6.1- 1ewf_PC1_A_577 = d.83.1.1- 2a94_AP0_A_336 = c.2.1.5-d.162.1.1- 1fm9_570_D_200 = a.123.1.1- 2zmh_NYA_A___1 = a.123.1.1-

I need to extract out lines, which have dissimilar values after the '=' sign. The output should look something like this:

2gqt_FAD_A_601 = d.145.1.2- 2i0z_FAD_A_501 = c.3.1.8-e.74.1.1- 1n1e_NDE_A_400 = a.100.1.6-c.2.1.6- 2qzl_IXS_A_449 = b.50.1.2- 1llf_F23_A_800 = c.69.1.17- 1y0g_8PP_A_320 = b.61.6.1- 1ewf_PC1_A_577 = d.83.1.1- 2a94_AP0_A_336 = c.2.1.5-d.162.1.1-

How do I do this? Please help.


In reply to extracting dissimilar lines by anasuya

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.