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?


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?