NORMAL='\e[39m' RED='\e[31m' msglog() { DATE=$(date '+%Y %b %d %H:%M:%S') echo ${DATE} ${RED}${@}${NORMAL} }