title: Editing a .CSV file through shell automation script
body: <p>I'm getting an error when trying to execute the script below around the done statement. The point of the code is to have the while statement execute for the duration of files listed in the filenames that log in order to grab the revision number for each file location in my branches folder.</p>
  
  <pre><code>filea=/home/filenames.log
  fileb=/home/actions.log
  filec=/home/revisions.log
  filed=/home/final.log
  
  
  count=1
  while read Path do
  Status=`sed -n "$count"p $fileb`
  Revision=`svn info ${WORKSPACE}/$Path | grep "Revision" | awk '{print $2}'`
  if `echo $Path | grep "UpgradeScript"` then
  Results="Reverted - ROkere"
  Details="Reverted per process"
  else if `echo $Path | grep "tsu_includes/shell_scripts"` then
  Results="Reverted - ROkere"
  Details="Reverted per process"
  else
  Results="Verified - ROkere"
  Details=""
  fi
  echo "$Path,$Status,$Revision,$Results,$Details" &gt; $filed
  count=`expr $count + 1`
  done &lt; $filea
  </code></pre>