title: SHA1 checksum of files in large directory and output to text file
body: <p>I need to output by file the sha1 checksum into an output file. Several of the files are > than 8gb if that makes a difference and the entire directory contains ~28K files. </p>
  
  <p>This is what I need the output file to look like: </p>
  
  <pre><code>SHA1(Windows printed document-1.pdf)= 1c1e2844be6e9ddd995941388b98c12a8b7a1e8d
  SHA1(Windows printed document.pdf)= 4ea8a157c5d8d0fc9c38aa6312d120ab425900a0
  SHA1(checklist.chk)= c5f9e078578925ef3de1e6075b0777d75296bb8f
  ...
  </code></pre>
  
  <p>This is the code so far:</p>
  
  <pre><code>openssl dgst -sha1 * &gt; ~/Desktop/output.txt
  </code></pre>
  
  <p>This code works great for small files or smallish directories but it's throwing an exception that the argument list is too large when I try to put it into production. </p>