<div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif;color:#3333ff">All,</div><div class="gmail_default" style="font-family:verdana,sans-serif;color:#3333ff">awk worked, but had an issue with multi-lined columns. Python script got too complicated. </div><div class="gmail_default" style="font-family:verdana,sans-serif;color:#3333ff"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;color:#3333ff">Finally, used Excel Macros to filter the spreadsheet, create TABs and beautify the CSV. This brought down my repetitive work from 4 hours to 2 minutes.</div><div class="gmail_default" style="font-family:verdana,sans-serif;color:#3333ff">Created multiple macros so I can selectively run the macros.</div><div class="gmail_default" style="font-family:verdana,sans-serif;color:#3333ff"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;color:#3333ff">Thank you all.</div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><div dir="ltr"><div><span style="color:rgb(51,51,255);font-family:verdana,sans-serif"></span> </div><div><span style="color:rgb(51,51,255);font-family:verdana,sans-serif">-GG</span></div></div></div></div>
<br><div class="gmail_quote">On Thu, Apr 28, 2016 at 7:06 PM, Berend Tober <span dir="ltr"><<a href="mailto:btober@computer.org" target="_blank">btober@computer.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">Rajiv Gunja wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hey all, I am trying to cut down on the amount of manual steps I have to<br>
take editing CSV file - sorting, creating new tabs and categorising them.<br>
I googled and found logparser from MS, could not figure it out - maybe a<br>
mental block towards anything MS.<br>
<br>
I saw that it was possible using python or PHP. So turning to you guys<br>
for advice. Which one works best or is there a different way?<br>
<br>
I do not know Python, but I can learn. PHP, I am very familiar with, but<br>
whichever is efficient and can do a better job, I will use it.<br>
<br>
Problem:<br>
1. CSV file has 2000+ rows<br>
2. Some columns are multi-line with \r and \n<br>
3. fields are separated by "," and each data item is between quotes (" ")<br>
<br>
</blockquote>
<br></span>
Your problem #2 is really a problem, but barring that, I have had great success with CSVKIT, which happens to be a Python implementation, but you don't have to know that in order to use the utilities.<br>
<br>
</blockquote></div><br></div>