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
You have two options:
Suppress rm warnings
rm
$ rm tempfl.txt 2> /dev/null
Redirect script output to /dev/null
/dev/null
$ ./myscript.sh 2> /dev/null
The latter has a drawback of missing all other warning messages produced by your script.