in reply to Re^2: appending to a file
in 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.

Replies are listed 'Best First'.
A reply falls below the community's threshold of quality. You may see it by logging in.