I have following script on AIX/KSH
if [[ -s file1 ]] ; then
echo "filename exists and is > 0 bytes"
else
echo "filename does not exist or is zero length"
fi
It is not working. What is wrong here???
I have following script on AIX/KSH
if [[ -s file1 ]] ; then
echo "filename exists and is > 0 bytes"
else
echo "filename does not exist or is zero length"
fi
It is not working. What is wrong here???
if its KSH the write
if [ not if [[
so
if [ ! -s file1 ] ; then
if [ -s file1 ] ; then
echo "filename exists and is > 0 bytes"
else
echo "filename does not exist or is zero length"
fi
This also does not work..
It worked, my file name had path and it was a different file,,,,