title: how to prefix zero's to make the total number as 8 digit for a word count of a specific file and print the output to a file
body: <p>Looking for a UNIX command to execute it from application.</p>
  
  <p>How to prefix zero's to make the total number as 8 digits for a word count of a specific file and print the output to a file, ex: </p>
  
  <pre><code>$ wc -l &lt; test  if the output is 200  
  </code></pre>
  
  <p>I need to change it to 00000200 and it should go into a file. 
  Word count may change for each file because of it the command should be generic.</p>