Last active
September 6, 2021 09:45
-
-
Save aldegoeij/4e67b672af4fc687ca69ddeba1ec38c2 to your computer and use it in GitHub Desktop.
How to download a bunch of log files from AWS S3 if they are not using prefixes properly
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
# brew install parallel first, forget about xargs and friends | |
aws s3 ls s3://___your_bucket_name___ --output=table | awk '{print $4}' | grep ___the_date_prefix___ | parallel -a - -exec aws s3 cp s3://___your_bucket_name___/{} . |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment