title: md5 all files in a directory tree
body: <p>I have a a directory with a structure like so:</p>
  
  <pre><code>.
  ├── Test.txt
  ├── Test1
  │   ├── Test1.txt
  │   ├── Test1_copy.txt
  │   └── Test1a
  │       ├── Test1a.txt
  │       └── Test1a_copy.txt
  └── Test2
     ├── Test2.txt
     ├── Test2_copy.txt
     └── Test2a
         ├── Test2a.txt
         └── Test2a_copy.txt
  </code></pre>
  
  <p>I would like to create a bash script that makes a md5 checksum of every file in this directory. I want to be able to type the script name in the CLI and then the path to the directory I want to hash and have it work. I'm sure there are many ways to accomplish this. Currently I have:</p>
  
  <pre><code>#!/bin/bash
  
  for file in "$1" ; do 
      md5 &gt;&gt; "${1}__checksums.md5"
  done
  </code></pre>
  
  <p>This just hangs and it not working. Perhaps I should use find?</p>
  
  <p>One caveat - the directories I want to hash will have files with different extensions and may not always have this exact same tree structure. I want something that will work in these different situations, as well. </p>