nutools/noout

9 lines
248 B
Plaintext
Raw Normal View History

#!/bin/bash
# -*- coding: utf-8 mode: sh -*- vim:sw=4:sts=4:et:ai:si:sta:fenc=utf-8
if [ $# -eq 1 -a "$1" == --help ]; then
echo "noout: lancer une commande en supprimant la sortie standard"
exit 0
fi
[ $# -gt 0 ] || exit 0
"$@" >/dev/null