<div dir="ltr">Sorry, forgot to mention...<br><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, May 22, 2013 at 10:47 AM, Antonio Sun <span dir="ltr"><<a href="mailto:antoniosun@lavabit.com" target="_blank">antoniosun@lavabit.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">Hi, <div><br></div><div>I'm wondering what's the best approach to pivot a record dump. </div>
<div><br></div><div>My simple record dump will be consists of two lines, first header then the record, with each field/header-name separated with \t. </div>
<div><br></div><div>Here is an example:</div><div><br></div><div>Id\tFirstN\tLastN\t...</div><div>1\tSam\tSmith\t...</div></div></blockquote><div> </div><div style>And the pivoted result would be:</div><div style><br></div>
<div style>Id=1<br></div><div style>FirstN=Sam<br></div><div style>LastN=Smith<br></div><div style>...</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div dir="ltr"><div></div><div>Also, if you think it can be done with normal *nix tools, without using Perl, I'm very much interested to know as well. </div>
<div><br></div><div>Thanks</div><span class=""><font color="#888888"><div><br></div><div>Antonio</div><div><br></div></font></span></div>
</blockquote></div><br></div></div>