title: IFS separate a string like "Hello","World","this","is, a boring", "line"
body: <p>I'm trying to parse a .csv file and I have some problems with IFS. 
  The file contains lines like this:</p>
  
  <pre><code>"Hello","World","this","is, a boring","line"
  </code></pre>
  
  <p>The columns are separated with a comma, so I tried to explode the line with this code:</p>
  
  <pre><code>IFS=, read -r -a tempArr &lt;&lt;&lt; "$line"
  </code></pre>
  
  <p>But I get this output:</p>
  
  <pre><code>"Hello"
  "World"
  "this"
  "is
  a boring"
  "line"
  </code></pre>
  
  <p>I understand why, so I tried some other commands but I don't get my expected output.</p>
  
  <pre><code>IFS=\",\"
  IFS=\",
  IFS=',\"'
  IFS=,\"
  </code></pre>
  
  <p>Every time the third element is seperated in 2 parts.
  How can I use IFS to seperate the string to 5 parts like this?</p>
  
  <pre><code>"Hello"
  "World" 
  "this" 
  "is, a boring" 
  "line"
  </code></pre>