Hi and thank you in advance,
I'm new to Unix scripting and am struggling with what seems to be very
simple, could someone please help stop my madness.
set -x
for ftpserver in isg1uw aixprod
do
case "$ftpserver" in
aixprod)
...
;;
isg1uw)
...
;;
esac
if "$ftpserver"=aixprod
then
print "print anything"
fi
done
The case statement is evaluated and executed properly, but the if statement
always evaluates $ftpserver=aixprod to be true and continues to print "print
anything". When I use set -x, I can see the following output
isg1uw=aixprod
bckupstat.sh[49]: isg1uw=aixprod: not found.
+ aixprod=aixprod
bckupstat.sh[49]: aixprod=aixprod: not found.
All help would be greatly appreciated
Thank you
Jordan