We are in the process of migrating our servers from Solaris to AIX.
During our testing phase, while we are testing the scripts(reccnt.int), we are getting the following error during execution:
/reccnt.int[32]: a:fname:b:dte:tme:eqind:norecs:cntr:c:d:e:f: is not an identifier
It is executing successfully in Solaris server.
Please advise.
Thanks
---------- Post updated at 01:14 AM ---------- Previous update was at 01:14 AM ----------
#!/bin/sh
RC=0 ; # return code
# first check input file
if [ ! -f $1 ] ; then
echo "Input file not found: " $1
exit 1
fi
# =====================================
# read first record of cntl file, separate into variables
#
# set IFS and reset after read cmd:
# set IFS to be colon (":")
# =====================================
IFS=:
read a:fname:b:dte:tme:eqind:norecs:cntr:c:d:e:f < $1
IFS=" "