title: Working with 'tr' in bash script
body: <p>How can I work with <code>tr '[a-z]' '[A-Z]'</code> in Bash script?</p>
  
  <p>I want save <code>$1</code> to a text file using <code>tr '[a-z]' '[A-Z]'</code> and print to console.</p>
  
  <p>How can I do this?</p>
  
  <pre><code>#!/bin/bash  
  echo $1 | tr '[a-z]' '[A-Z]'
  exit 0
  </code></pre>
  
  <p>is not working.</p>