title: I'm trying to use tr with multiple sets and not sure how
body: <p>I have used:</p>
  
  <pre><code>tr -dc [:alpha:] &lt; $fileDoc | wc -c
  </code></pre>
  
  <p>to count all letters,</p>
  
  <pre><code>tr -dc ' ' &lt; $fileDoc | wc -c
  </code></pre>
  
  <p>to count all spaces,</p>
  
  <pre><code>tr -dc '\n' &lt; $fileDoc | wc -c
  </code></pre>
  
  <p>to count all new lines in a text document.</p>
  
  <p>What I would like to do now is to do now is count all other characters in the document as I will call every thing else.</p>
  
  <p>Here is the text from the document:</p>
  
  <p>Hello this is a test text document.</p>
  
  <pre><code>123
  
  !@#
  </code></pre>
  
  <p>Is there a way to delete everything <code>[:alpha:]</code>, <code></code>, and <code>\n</code> found and count the remaining characters?</p>