My question, how could I hide the output text? I am only interested in the exit code, not in the text. I imagine I can use awk, but I think it is not too elegant. Is there something I am missing here?? Thx
mycommand > /dev/null
mycommand > /dev/null; s=$?; echo " "; exit $s