Skip to content

Instantly share code, notes, and snippets.

@thsutton
Created June 23, 2017 03:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thsutton/b5456e474cb19580a1da007db2065e36 to your computer and use it in GitHub Desktop.
Save thsutton/b5456e474cb19580a1da007db2065e36 to your computer and use it in GitHub Desktop.
TARGET=.
REPORT=/tmp/foo.sha
find $TARGET -type f -print0 | sort -z | xargs -0 sha1sum | tee >(sha1sum >> $REPORT) > $REPORT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment