Skip to content

Instantly share code, notes, and snippets.

@shello
Created January 24, 2012 15:26
Show Gist options
  • Save shello/1670681 to your computer and use it in GitHub Desktop.
Save shello/1670681 to your computer and use it in GitHub Desktop.
Write to a 'files.shasum' file the SHA Checksum of the regular files under the current directory (recursively), sorted alphabetically within each directory, while avoiding the output file.
OUTFILE='files.shasum' find -s . -type f -not -samefile $OUTFILE -exec shasum {} \; > $OUTFILE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment