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