title: Bash Password Special Character Checker
body: <p>So basically im trying to make my password validator check my password to see that it contains exactly one and only one of the special character (@$#!*&amp;)</p>
  
  <p>So far I got it so that it can identify if there is no special character in the parameters which is below, but i cannot seem to figure out how to make a statement that would make it so that it can identify that their is only one special character in the password.</p>
  
  <pre><code>if [ `echo $password | grep -c -E "[@#$%&amp;*+-=]+"` -eq 0 ]; then
  echo "Error"
  fi
  </code></pre>