Skip to content

Instantly share code, notes, and snippets.

@DerMika
DerMika / s3etag.sh
Created January 10, 2020 09:57 — forked from DaveOC90/s3etag.sh
A Bash script to compute ETag values for S3 multipart uploads on OS X.
#!/bin/bash
# From https://gist.github.com/emersonf/7413337
# 12/01/17 Minor edits for ubuntu compatilibility by DaveOC90
if [ $# -ne 2 ]; then
echo "Usage: $0 file partSizeInMb";
exit 0;
fi
@DerMika
DerMika / s3etag.sh
Created January 10, 2020 09:56 — forked from emersonf/s3etag.sh
A Bash script to compute ETag values for S3 multipart uploads on OS X.
#!/bin/bash
if [ $# -ne 2 ]; then
echo "Usage: $0 file partSizeInMb";
exit 0;
fi
file=$1
if [ ! -f "$file" ]; then