I am modifying a AIX Korn shell script
#! /bin/ksh
cd /usr/lawson/lawson/ocft/edi/in/810
if [[ -s GHX81P.out]] then
cat GHX81P.out >> GHX810.out
fi
file=GHX810.out
sed -e "s/","/""/g" $file > file1
cp file1 $file
This errors on the "then". If I remove the "then" it errors on the "cat".
The -s should work, can somebody tell me what I am doing wrong?
#! /bin/ksh
cd /usr/lawson/lawson/ocft/edi/in/810
if [[ -s GHX81P.out]] then
cat GHX81P.out >> GHX810.out
fi
file=GHX810.out
sed -e "s/","/""/g" $file > file1
cp file1 $file
This errors on the "then". If I remove the "then" it errors on the "cat".
The -s should work, can somebody tell me what I am doing wrong?