anasuya has asked for the wisdom of the Perl Monks concerning the following question:
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: extracting dissimilar lines
by JavaFan (Canon) on Mar 26, 2012 at 09:28 UTC | |
by CountZero (Bishop) on Mar 26, 2012 at 20:04 UTC | |
by JavaFan (Canon) on Mar 26, 2012 at 21:16 UTC | |
by CountZero (Bishop) on Mar 26, 2012 at 22:22 UTC | |
|
Re: extracting dissimilar lines
by stevieb (Canon) on Mar 26, 2012 at 13:38 UTC | |
|
Re: extracting dissimilar lines
by trizen (Hermit) on Mar 26, 2012 at 18:28 UTC |