Calculate the SHA1 checksum from stdin

shasum

{{some_command}} | shasum

click the source code to copy install shasum on any operating system with command-not-found.com