title: Shell cmd "date" without new line in the end
body: <p>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:</p>
  
  <pre><code>echo -n `date +"[%m-%d %H:%M:%S]"`
  </code></pre>
  
  <p>or </p>
  
  <pre><code>date +"[%m-%d %H:%M:%S]"|tr -d "\n"
  </code></pre>
  
  <p>Are there any built-in parameter for "date" to do that?</p>