Roguehorse has asked for the wisdom of the Perl Monks concerning the following question:
Hello,
I'm having a problem sorting between two files that I hope someone can help me with as I'm still pretty new to Perl.
I need to separate all values where key 1 first page third column is != key 2 second page third column and then print those lines to another external page sequentially from the two.
The trick is that the file has 90k+ entries and line 1 may have duplicates such as 'Scott' more than once which I would like to keep, only eliminating those values where 'Scott' shows in line key 1 & 2 of the same second column value.
A sample of the first file looks like this:
The second file looks like this:
My desired results would be this:
I've been through many pages of @array, %hash and awk trying to modify it to suit my needs but have not been able to get a working solution yet as most of them are only trying to remove one duplicate line.
A little help PLEASE!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Sorting By Column
by AppleFritter (Vicar) on Jul 10, 2014 at 17:00 UTC | |
by dasgar (Priest) on Jul 10, 2014 at 19:02 UTC | |
by AppleFritter (Vicar) on Jul 10, 2014 at 19:05 UTC | |
by Roguehorse (Initiate) on Jul 10, 2014 at 21:12 UTC | |
by Roguehorse (Initiate) on Jul 10, 2014 at 22:21 UTC | |
by AppleFritter (Vicar) on Jul 11, 2014 at 00:27 UTC | |
|
Re: Sorting By Column
by dasgar (Priest) on Jul 10, 2014 at 18:58 UTC | |
|
Re: Sorting By Column
by Anonymous Monk on Jul 10, 2014 at 18:05 UTC | |
by Roguehorse (Initiate) on Jul 10, 2014 at 21:27 UTC | |
|
Re: Sorting By Column
by oiskuu (Hermit) on Jul 10, 2014 at 22:04 UTC | |
|
Re: Sorting By Column
by Laurent_R (Canon) on Jul 10, 2014 at 19:05 UTC |