Last active
August 2, 2016 10:32
-
-
Save etam/6983844f4cef5b344ff58ca2d9f642ef to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if (( $# != 3 )); then | |
echo "usage: $(basename "$0") type hash filename" | |
exit 1 | |
fi | |
type="$1" | |
hash="$2" | |
filename="$3" | |
cat > "$filename.$type" <<EOF | |
$hash $filename | |
EOF |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment