Skip to content

Instantly share code, notes, and snippets.

@iandesj
Created July 9, 2021 13:49
Show Gist options
  • Select an option

  • Save iandesj/ecbfef76b1b8ea560f55eac6ec8c0860 to your computer and use it in GitHub Desktop.

Select an option

Save iandesj/ecbfef76b1b8ea560f55eac6ec8c0860 to your computer and use it in GitHub Desktop.

Revisions

  1. iandesj created this gist Jul 9, 2021.
    7 changes: 7 additions & 0 deletions md5_hash_dir.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    # replace md5sum with md5 on a mac

    # for javascript/node codebase
    find -s client -not -path "*/node_modules/*" -type f -exec md5sum {} \; | md5sum

    # python codebase with venv/
    find -s backend -not -path "*/venv/*" -type f -exec md5sum {} \; | md5sum