I want to output a line of date using date command, but it's end with a "\n" which I don't need it, currently, I use:
echo -n `date +"[%m-%d %H:%M:%S]"`
or
date +"[%m-%d %H:%M:%S]"|tr -d "\n"
Are there any built-in parameter for "date" to do that?