Hide the Error
Medium · Pipelines & Redirection · Redirection · stderr
Problem
Try to print missing.txt, which does not exist, and discard the error message. Then print done.
The script must produce only done.
Approaches
- 2> /dev/null
Related problems
Start free on Cariara · Coding problems · System design studio