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:<
All output:
scriptname &>/dev/null
Portable:
scriptname >/dev/null 2>&1
scriptname >/dev/null 2>/dev/null
For newer bash (no portable):
scriptname &>-