<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Caros,<div><br></div><div>Tenho o seguinte arquivo:</div><div><a href="https://gist.github.com/roneyfraga/ca682b6193c75e7be4bf">https://gist.github.com/roneyfraga/ca682b6193c75e7be4bf</a></div><div><br></div><div>Quero manter apenas as linhas que começam com AU, DT, PY, VL e BP no arquivo. O resultado seria:</div><div><br></div><div><pre class="line-pre">AU Lin, TH
DT Article
PY 2012
VL 116
BP 314</pre><pre class="line-pre">AU Brodeur-Campbell, M
DT Article
PY 2012
VL 116
BP 320</pre><pre class="line-pre"><br></pre><div><pre class="line-pre"><div class="line" id="file-savedrecs-txt-LC69"><div><div><div>Agora preciso que a cada 4 linhas estas sejam transpostas, de modo que ficaria assim:</div></div></div><div><br></div><div>
<table cellspacing="0" cols="5" border="0" style="position: static; z-index: auto;">
<colgroup width="187"></colgroup>
<colgroup width="88"></colgroup>
<colgroup width="78"></colgroup>
<colgroup width="67"></colgroup>
<colgroup width="91"></colgroup>
<tbody><tr>
<td style="border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000" height="21" align="LEFT"><font face="Menlo-Regular" size="1">V1</font></td>
<td style="border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000" align="LEFT"><font face="Menlo-Regular" size="1">V2</font></td>
<td style="border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000" align="LEFT"><font face="Menlo-Regular" size="1">V3</font></td>
<td style="border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000" align="LEFT"><font face="Menlo-Regular" size="1">V4</font></td>
<td style="border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000" align="LEFT"><font face="Menlo-Regular" size="1">V5</font></td>
</tr>
<tr>
<td style="border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000" height="21" align="LEFT"><font face="Menlo-Regular" size="1">AU Lin, TH</font></td>
<td style="border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000" align="LEFT"><font face="Menlo-Regular" size="1">DT Article</font></td>
<td style="border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000" align="LEFT"><font face="Menlo-Regular" size="1">PY 2012</font></td>
<td style="border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000" align="LEFT"><font face="Menlo-Regular" size="1">VL 116</font></td>
<td style="border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000" align="LEFT"><font face="Menlo-Regular" size="1">BP 314</font></td>
</tr>
<tr>
<td style="border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000" height="21" align="LEFT"><font face="Menlo-Regular" size="1">AU Brodeur-Campbell, M</font></td>
<td style="border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000" align="LEFT"><font face="Menlo-Regular" size="1">DT Article</font></td>
<td style="border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000" align="LEFT"><font face="Menlo-Regular" size="1">PY 2012</font></td>
<td style="border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000" align="LEFT"><font face="Menlo-Regular" size="1">VL 116</font></td>
<td style="border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000" align="LEFT"><font face="Menlo-Regular" size="1">BP 320</font></td>
</tr>
</tbody></table>
Qualquer sugestão será bem vinda?</div><div><br></div><div>Atenciosamente,</div><div>Roney
</div></div></pre></div></div></body></html>