Article 4WGK5 Unix Shell Script Migration to UCP - expr syntax error

Unix Shell Script Migration to UCP - expr syntax error

by
Gourav Sinha
from LinuxQuestions.org on (#4WGK5)
startLine=`grep -n 'SELECT ' $TempSQLOutput | awk -F":" '{ print $1}'`
startLine=`expr $startLine + 4`
endLine=`grep -n 'record(s) selected' $TempSQLOutput | awk -F":" '{ print $1}'`
endLine=`expr $endLine - 2`

This was the code and i am getting expr: syntax error in test autosys.Please suggest a solution?latest?d=yIl2AUoC8zA latest?i=R9acCxUnZh0:vxVUZ_SjlEg:F7zBnMy latest?i=R9acCxUnZh0:vxVUZ_SjlEg:V_sGLiP latest?d=qj6IDK7rITs latest?i=R9acCxUnZh0:vxVUZ_SjlEg:gIN9vFwR9acCxUnZh0
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments