shush.sh (388B)
1 #!/bin/sh 2 # shh = quiet for commands that don't include it 3 # description: run a terminal command ($@) and send stdout to /dev/null 4 # e.g.$ shush chromium & 5 6 if [ "$1" = "-h" ] || [ "$1" = "--help" ]; then 7 echo "Usage: shush ARGS" 8 echo "" 9 echo "run all commands in ARGS but send stdout to /dev/null, for when a tool is too noisy" 10 exit 11 fi 12 13 for bin in $@; do 14 $bin &>/dev/null 15 done; 16