[tpm] Pivot record dump

Antonio Sun antoniosun at lavabit.com
Wed May 22 07:51:03 PDT 2013


Sorry, forgot to mention...


On Wed, May 22, 2013 at 10:47 AM, Antonio Sun <antoniosun at lavabit.com>wrote:

> Hi,
>
> I'm wondering what's the best approach to pivot a record dump.
>
> My simple record dump will be consists of two lines, first header then the
> record, with each field/header-name separated with \t.
>
> Here is an example:
>
> Id\tFirstN\tLastN\t...
> 1\tSam\tSmith\t...
>

And the pivoted result would be:

Id=1
FirstN=Sam
LastN=Smith
...

Also, if you think it can be done with normal *nix tools, without using
> Perl, I'm very much interested to know as well.
>
> Thanks
>
> Antonio
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.pm.org/pipermail/toronto-pm/attachments/20130522/a958f20a/attachment.html>


More information about the toronto-pm mailing list