neversaint has asked for the wisdom of the Perl Monks concerning the following question:
Into thisfoo r1.1 abc foo r10.1 pqr qux r2.1 lmn bar r33.1 xpq # In fact there could be more fields that preceeds column with "rxx.x" +.
Basically, put second column into the first and everything else that preceeds it, after.r1.1 foo abc r10.1 foo pqr r2.1 qux lmn r33.1 bar xpq
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Reorganizing Columns with Perl One Liner
by choroba (Cardinal) on Nov 25, 2011 at 14:14 UTC | |
|
Re: Reorganizing Columns with Perl One Liner
by BrowserUk (Patriarch) on Nov 25, 2011 at 14:54 UTC | |
|
Re: Reorganizing Columns with Perl One Liner
by johngg (Canon) on Nov 25, 2011 at 14:18 UTC | |
|
Re: Reorganizing Columns with Perl One Liner
by NetWallah (Canon) on Nov 25, 2011 at 15:24 UTC | |
|
Re: Reorganizing Columns with Perl One Liner
by Util (Priest) on Nov 25, 2011 at 23:49 UTC | |
|
Re: Reorganizing Columns with Perl One Liner
by pvaldes (Chaplain) on Nov 25, 2011 at 14:23 UTC |