3 ms·
You can also acomplish this with shell: export BUCKET=____; aws s3 ls "$BUCKET" | tail -n+2 | awk '{print $4}' | while read k; do aws s3 cp "s3://$BUCKET/$k" -
by aliencat 7y ago
You can also acomplish this with shell:
export BUCKET=____; aws s3 ls "$BUCKET" | tail -n+2 | awk '{print $4}' | while read k; do aws s3 cp "s3://$BUCKET/$k" -; done
- loige 7y agoI especially like the "done" (!) at end :) Thanks for this one-liner!