Hi All,
Has been a while since I was last on, so I hope everyone has been doing fine.
Would like to know if the below IF statement syntax is correct for a ksh environment. It's been pushed into live as someone had deleted the development copy(!); not withstanding that, the statement now won't be called/executed until May 5th. So if there is any obvious issues seen, I'll have time to fix.
Any/all feedback appreciated.
Cheers,
Cameron
if [ \( "${MKT}"="PU" -o "${MKT}"="PH" \) -a "${FILETYPE}"="PAY" ] ; then
cp ${FTP_DIR}/${MKT}-${DOR}.BANKHOLIDAY \
${FTP_ARC}/${MKT}-${DOR}-${FILETYPE}.BANKHOLIDAY
else
mv ${FTP_DIR}/${MKT}-${DOR}.BANKHOLIDAY \
${FTP_ARC}/${MKT}-${DOR}-${FILETYPE}.BANKHOLIDAY
fi