Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
My apologies in advance for such a simple question. I noticed a similar posting on removing redundancy - tried to modify it to work for my scenario but can't quite get it to work.
I have a file in the following tab-delimited format:
text1 text-a text-a text-b text-a
text1 text-c
text2 text-a text-b
text2 text-b text-d
etc...
I need to combine all data for "text1","text2", etc. while at the same time removing it's redundancy. So the output for this file will look like this:
text1 text-a text-b text-c
text2 text-a text-b text-d
Hopefully this makes sense and many thanks in advance for your help.
freddie
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Removing redundancy in X and Y directions
by kyle (Abbot) on Sep 26, 2008 at 15:17 UTC | |
by Anonymous Monk on Sep 26, 2008 at 15:55 UTC | |
by kyle (Abbot) on Sep 26, 2008 at 16:10 UTC | |
|
Re: Removing redundancy in X and Y directions
by JavaFan (Canon) on Sep 26, 2008 at 15:53 UTC | |
by Anonymous Monk on Sep 27, 2008 at 18:46 UTC |