improved terminal output in shell script