title: `newline' unexpected when run shell script
body: <p>Im new to unix command. I would like to execute jasper file P70152R1 and pass busDt param to that file. 
  Currently hit this error >>> <strong>line 51: syntax error at line 53: `newline' unexpected</strong></p>
  
  <p>Can anyone help me to check my shell script.</p>
  
  <p>Below is my script:</p>
  
  <pre><code>echo "*********************************************************"
  echo "*         xxxxxxxxxxxxxxxxxxxxxxxxx                     *"
  echo "*********************************************************"
  echo
  echo "*********************************************************************************"
  echo "*                 xxxxxxxxxxxxxxxxxxxxxxxx                  *"
  echo "*                            UP                             *"
  echo "*     P700152R1 - AAAAAAAAAAAAAAAAAAA REPORT            *"
  echo "*     P700152R2 - BBBBBBBBBBBBBBBBBBB REPORT        *"
  echo "*     P700152R3 - CCCCCCCCCCCCCCCCCCC REPORT            *"
  echo "*                           (JP700152)                          *"
  echo "*                        FREQUENCY : DAILY                          *"
  echo ****************************************************************************"
  echo
  cd $MAIN/CWJCL/ACQ
  export JCL=$MAIN/CWJCL/ACQ
  export PRM=$MAIN/CWPRM/ACQ:$MAIN/CWPRM/CMN
  export JAS=$MAIN/CWRPT/ACQ
  export rptDir=$MAIN/ACQ/DAILYRPT
  export LOG=$MAIN/CWLOG/ACQ
  
  echo "Start Time and Date : \c" &amp;&amp;date
  echo
  JP70152=`date +%Y%m%d%H%M%S`
  $JCL/strtJob $JP70152 JP70152
  
  # Classpath
  . $JCL/SETENV
  #export CLASSPATH=$CLASSPATH:$PRM:$LIB/acq-1.0.jar
  export CLASSPATH=$CLASSPATH:$PRM:"$MAIN/CWLIB/classes/acq"
  
  # Get Business Date
  echo "set heading off;" &gt; $LOG/busDtSel.sql
  echo "spool $LOG/date.log;" &gt;&gt; $LOG/busDtSel.sql
  echo "ALTER SESSION SET CURRENT_SCHEMA=CCPS;" &gt;&gt; $LOG/busDtSel.sql
  echo "SELECT 'CURRENT-BUSS-DATE:'||F9_AP008_BUS_DT FROM AP008;" &gt;&gt; $LOG/busDtSel.sql
  echo "spool off;" &gt;&gt; $LOG/busDtSel.sql
  echo "EXIT;" &gt;&gt; $LOG/busDtSel.sql
  echo
  $JCL/CONNAM.sh $LOG/busDtSel.sql $LOG/sel_day
  a=$?
  if [ ! $a -eq 0 ]
  then
     return $a
  fi
  
  tmpDt=`grep CURRENT-BUSS-DATE $LOG/date.log`
  busDt=${tmpDt##*:}
  
  # run program.
  yyyymmdd=`date +%Y%m%d`
  $JAVA_HOME/bin/java my.com.eprotea.report.JRGenerator -Ttxt -J$JAS/P70152R1.jasper -DACQ -O$rptDir/P70152R1.rpt -P&lt;BUS-DATE:$busDt&gt;
  ##########$JAVA_HOME/bin/java my.com.eprotea.report.JRGenerator -Ttxt -J$JAS/P70152R2.jasper -DACQ -O$rptDir/P70152R2.rpt -P&lt;BUS-DATE:$busDt&gt;
  ##########$JAVA_HOME/bin/java my.com.eprotea.report.JRGenerator -Ttxt -J$JAS/P70152R3.jasper -DACQ -O$rptDir/P70152R3.rpt -P&lt;BUS-DATE:$busDt&gt;
  a=$?
  echo $a
  if [ ! $a -eq 0 ]
  then
     return $a
  fi
  echo
  echo
  echo
  $JCL/endJob $JP70152 JP70152
  echo "End Time and Date : \c" &amp;&amp;date
  echo
  return $a
  </code></pre>
  
  <p>Really appreciate your help. Thanks id advance !</p>