title: Bash while loop + cut slow
body: <p>I am trying to process a file (1.5GB) with a bash loop to iterate each line. I used <code>cut</code> for its simplicity (relative) and ended up with:</p>
  
  <pre><code>while read line
  do
      echo "$(echo $line | cut -d' ' -f 2-3)" "$(echo $line | cut -d'"' -f 20)"
  done &lt; TEST.log &gt; IDS.log
  </code></pre>
  
  <p>This is very slow and only does about 2KB/sec. I need something to run a lot faster.</p>
  
  <p>Also, what is the bottleneck here?</p>