Skip to content

Instantly share code, notes, and snippets.

@thsutton
Created June 23, 2017 03:57
Show Gist options
  • Select an option

  • Save thsutton/b5456e474cb19580a1da007db2065e36 to your computer and use it in GitHub Desktop.

Select an option

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