title: right align/pad numbers in bash
body: <p>What's the best way to pad numbers when printing output in bash, such that the numbers are right aligned down the screen. So this:  </p>
  
  <pre><code>00364.txt with 28 words in 0m0.927s
  00366.txt with 105 words in 0m2.422s
  00367.txt with 168 words in 0m3.292s
  00368.txt with 1515 words in 0m27.238
  </code></pre>
  
  <p>Should be printed like this:</p>
  
  <pre><code>00364.txt with   28 words in 0m0.927s
  00366.txt with  105 words in 0m2.422s
  00367.txt with  168 words in 0m3.292s
  00368.txt with 1515 words in 0m27.238
  </code></pre>
  
  <p>I'm printing these out line by line from within a for loop. And I will know the upper bound on the number of words in a file (just not right now).</p>