in reply to Re: appending to a filein thread appending to a file
The -e checks for the existence of a file, not writability. So the file test in question won't guarantee that your file can be opened for appending.