Created
August 12, 2016 14:29
-
-
Save vallettea/b63f3fa03153afe5d57505ad55b074fd to your computer and use it in GitHub Desktop.
Get size of S3 bucket
This file contains hidden or 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
aws s3 ls s3://immoviz --region=eu-central-1 --recursive | grep -v -E "(Bucket: |Prefix: |LastWriteTime|^$|--)" | awk 'BEGIN {total=0}{total+=$3}END{print total/1024/1024" MB"}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment