merkle-tree () { dirname="${1-.}" pushd "$dirname" find . -type f | \ sort | \ xargs -I{} sha256sum "{}" | \ sha256sum | \ awk '{print $1}' popd }