title: Why I can't split the string?
body: <p>I want to read a file by shell script, and process it line by line. I would like to extract 2 fields from each line. Here is my code:</p>
  
  <pre><code>#!/bin/bsh
  mlist=`ls *.log.2011-11-1* | grep -v error`
  for log in $mlist
  do
          while read line
          do
                  echo ${line} | awk -F"/" '{print $4}'  #This produce nothing
                  echo ${line}                           #This work and print each line
          done &lt; $log | grep "java.lang.Exception"
  done
  </code></pre>
  
  <p>This is a sample line from the input file:</p>
  
  <pre><code>&lt;ERROR&gt; LimitFilter.WebContainer : 4 11-14-2011 21:56:55 - java.lang.Exception: File - /AAA/BBB/CCC/DDDDDDDD.PDF does not exist
  </code></pre>
  
  <p>If I don't use bsh, I can use ksh, and the result is the same. We have no bash here.</p>