I have a program that outputs to stdout and would like to silence that output in a Bash script while piping to a file.
For example, running the program will output:<
If you are still struggling to find an answer, specially if you produced a file for the output, and you prefer a clear alternative: echo "hi" | grep "use this hack to hide the oputut :) "
echo "hi" | grep "use this hack to hide the oputut :) "