Created
February 2, 2023 22:06
-
-
Save jorgetovar/1f5e52ec4732d597e6d2bc432ee0745c 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
for bucket_name in `aws s3 ls | awk '{print $3}'`; do | |
echo "$bucket_name" | |
aws s3 ls s3://$bucket_name --recursive --summarize | tail -n2 | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Great, thank you!
I added
--human-readable
to get output likeTotal Size: 2.1 GiB
instead ofTotal Size: 2282642431