I have a program that outputs to stdout and would like to silence that output in a bashscript while piping to a file.
For example, running the program will output:
% myprogram
% WELCOME TO MY PROGRAM
% Done.
I want the following script to not output anything to the command-line:
#!/bin/bash
myprogram > sample.s
How would I do this? Thanks