title: How can I check the length of an argument in bash?
body: <p>Let's say I want to check if the first argument is 2 characters long. I tried</p>
  
  <pre><code>if [ ${#$1} -e 2]
  </code></pre>
  
  <p>but it doesn't work.</p>