Skip to content

Instantly share code, notes, and snippets.

@jbedo
Created May 8, 2013 23:24
Show Gist options
  • Save jbedo/5544446 to your computer and use it in GitHub Desktop.
Save jbedo/5544446 to your computer and use it in GitHub Desktop.
Simple wrapper for FreeBSD around sha256 to provide more standard output formatting.
#!/bin/sh
sha256 $* | awk '{match($0, /\(.*\)/);
path = substr($0, RSTART+1, RLENGTH-2)
print $NF, path}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment