In my shell script I got these lines:
rm tempfl.txt rm tempfl2.txt
If these do not exist I get the error messages:
rm: temp
Try this command:
rm -f tempfl.txt
the -f option acts like this:
-f, --force ignore nonexistent files, never prompt
The command also doesn't report a non-zero error code in case the file doesn't exist.