title: How to split egrep print result in to multiple columns and export to a CSV file
body: <p>I am trying to find all hardcoded strings in my xcode project and export the results to a csv file. the below script that i used is giving me all the list of values along with filename as one string (i.e. /path/classA.m @"Value") and when i export same results to csv file obviously everything is copied in to one column.  </p>
  
  <pre><code>find "${SRCROOT}" \( -name "*.h" -or -name "*.m" \) -print0 | xargs -0 egrep --with-filename --only-matching "($KEYWORDS).*\$" &gt; myFile.csv
  </code></pre>
  
  <p>But i am trying to export the results in to csv so that i want to see filename under column and hardocded values in other column.</p>
  
  <p>I am newbie in to scripting world. Please help me to get over this</p>