if condition in AIX5.3-10 shell script

True if file exists and has been modified since it was last read.

if [ -N filename ]
then
      command
else

     exit
fi

i am on AIX5.3-10. it does not understand -N

any other way.

i can use -ot (file1 is older than file2), but prefer -N if possible.

I think -A is part of the BASH shell.

i tried that also, no go. thanks anyway. oh well, -ot will do the trick for me now.

I think -N is only a part of the ksh93 shell? Are you sure your running that vs a normal korn shell?