title: Bash command that prints a message on stderr
body: <p>I want to know if there is a built-in BASH command that prints some text on stderr, just like the <code>echo</code> command that prints text on stdout. I don't want to use temporary io-redirection. I use a built-in command to generate an error on stderr such as <code>ls --asdf</code> (ls: unrecognized option '--asdf') but I want something neater.</p>
  
  <p>Edit ----</p>
  
  <p>Actually I am trying to demonstrate stderr/stdout redirection, and my example looks like:</p>
  
  <pre><code>sh test.sh &gt;test-out.txt 2&gt;test-err.txt
  </code></pre>
  
  <p>For clarity, I want to keep the test.sh file as simple and clean as possible, this means avoiding <code>&gt;</code> operator inside the file.</p>