title: UNIX: How to count the number of characters in a line, and find for any line that has the same number of characters?
body: <p>how would you count the number of total characters in a line, return the number, and then look for any other lines with a similar character count?</p>
  
  <p>So, for example, the input:</p>
  
  <pre><code>this is a line
  this is the second line
  this is the third line
  </code></pre>
  
  <p>would return the output</p>
  
  <pre><code>14    1
  23    1
  22    1
  </code></pre>
  
  <p>where the first number is the number of characters in the first line, and the second number is the number of lines that that number of characters appear in.</p>