title: How to sha256 each line in a file?
body: <p>I'm using a macOS Sierra and want to sha256 each line in a file.</p>
  
  <p>File:</p>
  
  <pre><code>test
  example
  sample
  </code></pre>
  
  <p>Intended output:</p>
  
  <pre><code>9F86D081884C7D659A2FEAA0C55AD015A3BF4F1B2B0B822CD15D6C15B0F00A08
  50D858E0985ECC7F60418AAF0CC5AB587F42C2570A884095A9E8CCACD0F6545C
  AF2BDBE1AA9B6EC1E2ADE1D694F41FC71A831D0268E9891562113D8A62ADD1BF
  </code></pre>
  
  <p>I've found a few ways to do this on Ubuntu, but Mac doesn't seem to have sha256 installed on it.  From what is sounds like, you have to use something similar to <code>shasum 256</code> but nothing seems to be working.</p>