Hi All,
I am trying to run the file A. But i am facing the following error.
./A.sh: line 13: syntax error near unexpected token `fi'
./A.sh: line 13: `fi'
File A:
if [$#==1] then
/m01/oracle/6iprod/compile/scripts/hforms.sh $1
else
/m01/oracle/6iprod/compile/scripts/hforms.sh
fi
File hforms.sh:
if [$#==0] then
for i in `ls *.fmb`
do
echo "Compiling Form $i \n"
/m01/oracle/product/9.0.4/bin/f90genm userid=a/b@unix.gna batch=yes module=$i module_type=form compile_all=yes
RET=$?
echo $RET
done
else
echo "Compiling Form $1 \n"
/m01/oracle/product/9.0.4/bin/f90genm userid=oe/temp1234@unix.gna batch=yes module=$i module_type=form compile_all=yes
RET=$?
echo $RET
fi