Hi Friends,
We have migrated our Unix from HP True 64 v5.1 to HP-UX B.11.11i recently and copied all my shell scripts ( Korn shell ) to new HP-UX B.11.11i unix machine. I've encountered lot of errors during execution of the scripts for example:
cat x.sh
#!/usr/bin/ksh
if [ -f abc.txt ]
then
echo abc.txt file exists...
else
echo abc.txt file does not exists...
fi
===============
x.sh: test: argument expected
abc.txt file does not exists...
In my old machine there were no problems, pls advise with how can I overcome from this kind of problems.
Thanks
Krishna